I want to show some content on the front end ONLY to the author of an entry. Although the documentation only mentions ‘member_id’ in context of the currently logged-in user, it appears using it within the Channel Entries tag uses the member_id of the author, so that the following always evaluates to true:
{exp:channel:entries channel="news"}
{if {member_id} == {author_id}}
Show this content
{/if}
{/exp:channel:entries}I’ve tried setting a Stash variable for each, but somehow I can’t get the variables to work inside a conditional (have posted on the Stash forum about that).
I’d be very grateful for any and all ideas on how to show content only to an entry’s author.
Thanks,
Matthew