• I have a search bar I want to show to ONLY Logged in users.

    However when I use the <?php if ( is_user_logged_in() ) { … } ?> function I get an line-ERROR when trying to load my site.

    https://manolze.net/urban/ This is the site. The search bar is in the #banner div.

    How do I hide it from logged out users and what is the correct php to use in my header.php?

    Thanks in advance!

  • The topic ‘is_user_logged_in() shortcode’ is closed to new replies.