I'm trying to display a phrase based on the language_code This is the code:
{exp:channel:entries
channel="offerte"
disable="categories|category_fields|member_data|pagination|trackbacks"
dynamic="no"
}
{if language_code="it"}
{if no_results}
<p>Nessuna offerta al momento</p>
{/if}
{/if}
{if language_code="en"}
{if no_results}
<p>No offers at the moment</p>
{/if}
{/if}
<h6>{title}</h6>
<p>{descrizione}</p>
{/exp:channel:entries}
the result is that it is shown only the phrase with language_code it , even if language_code is en
how can i resolve it? Thanks
{language_code}
between your Channel Entries tag pair to see the value of that tag and how many entries you get returned.