Hi.
I want different styles depending on the category of the entries and I’m using the following code:
{exp:channel:entries channel='blog' limit='10' order_by='date' sort='desc'}
{if '{category}' == '1' OR category == '2'}
<div class="twelve columns">
/themes/site_themes/lgnv1/timthumb/timthumb.php?src={imagen_destacada}&h=150&w=1000&zc=1
<h1><a href="http://{url_title_path=lgnv1/post}">{title}</a></h1>
{entrada}
</div>
{if:else '{category}' == '3'}
<div class="twelve columns">
<h1 class="centered">{title}</h1>
<center>{entrada}</center>
</div>
{/if}
{/exp:channel:entries}But all that I have is an error rendering the page. Also I try with the following code too:
{exp:channel:entries channel='blog' limit='10' order_by='date' sort='desc'}
{if category == '1' OR category == '2'}
<div class="twelve columns">
/themes/site_themes/lgnv1/timthumb/timthumb.php?src={imagen_destacada}&h=150&w=1000&zc=1
<h1><a href="http://{url_title_path=lgnv1/post}">{title}</a></h1>
{entrada}
</div>
{if:else category == '3'}
<div class="twelve columns">
<h1 class="centered">{title}</h1>
<center>{entrada}</center>
</div>
{/if}
{/exp:channel:entries}Someone can guide me, please.
Thanks a lot.