• Resolved DustyGhost

    (@dustyghost)


    Hello there,

    On my sidebar I have the Recent Posts widget.

    But I only want this to show if the user is logged in.

    Anyone know how to do this?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter DustyGhost

    (@dustyghost)

    Just found the Widget Logic plug-in!

    Works like a charm when you add is_user_logged_in() to the php code on the widget!

    grosbouff

    (@grosbouff)

    Another way to hardcode that in the functions.php ?

    I would like to avoid to install another plugin; I just want to hide a specific widget if the user is logged. I don’t need more control than that.

    How could I do it ? Is there a filter or action ?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Hide Widgets when not logged in’ is closed to new replies.