I've got a weird one going on here. EE 2.8 site.
I wanted to create a conditional based on whether it was ME on the site. I wanted to see some info that was not to be rendered to the normal user. So, I tried to create a conditional like:
{if member_id == '1'} show this {/if}
It didn't work on the post of interest (and my member ID is "1"), so I tried the same with username and screen_name. Still didn't work.
So, I started printing out the {username}, {member_id} and {screen_name} and discovered that they match the author of the post (my wife), not me as the logged in user.
Yet, elsewhere on the site the {screen_name} variable works because I show the name of the currently logged on user.
Does anyone have any idea why these global variables would take on the value of the author (and all three reflect the author whether it is me or my wife), instead of the logged in user?