I am trying to display one entry (most recent) on my home page from 2 different channels. So ChannelA and ChannelB.
{exp:weblog:entries weblog="weblogA|weblogB" limit="1" sort="asc" show_future_entries="yes"}
{if weblog == "weblogA"} display A {/if}
{if weblog == "weblogB"} display B {/if}
{/exp:weblog:entries}
The above worked on an EE1 site but but now on an EE2 site and channel does not work the same.
{exp:channel:entries channel="channelA|channelB" limit="1" sort="asc" show_future_entries="yes"}
{if channel == "channelA"} display A {/if}
{if channel == "channelB"} display B {/if}
{/exp:channel:entries}
Any advice?
channel
and version 1 usesweblog
.