Viewing 3 replies - 1 through 3 (of 3 total)
  • <?php if ( is_user_logged_in()) : ?>
    Some text to display only if you are logged in
    <?php else : ?>
    Some text to display if you are a guest
    <?php endif ; ?>
    Thread Starter onel0ve

    (@onel0ve)

    Where i will post it i mean which template?

    Stevenoi

    This was very helpful to me. Works like a charm. I use it to show Adsense ads on my Homepage to guests only.
    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘how hide like from guest’ is closed to new replies.