My RSS 2.0 feed works fine when I do this for the description:
<description>{exp:xml_encode}{experiment}{/exp:xml_encode}</description>
However my actual weblog has a set of fields experiment, setup, ... and a field called standardpost which is used when I don’t want to use the other fields. So a entry in the weblog either has experiment and setup, ... filled up OR standardpost filled and I do this in my actual index display:
{if standardpost}
{standardpost}
{if:else}
{experiment}{setup}
{/if}
When I do this in my RSS 2.0 feed:
<description>{exp:xml_encode}{if standardpost}{standardpost}{if:else}{experiment}{/if}{/exp:xml_encode}</description>
the feed breaks…
Can I not use if else statement in feeds? This has been driving me crazy.