• hi, i am using WP-Members Membership Plugin on my website and i want the search results to display only for logged in users, if user not logged in show them the message that login or register to see search result like we get message on blocked pages..

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    You can do that, but it would generally be something you work out in your theme template for your search results.

    Use is_user_logged_in() as a conditional to display results or whatever displays to the non-logged in user.

    if ( is_user_logged_in() ) {
        // Search results loop here (such as while(have_posts()):...)
    } else {
        // Display message and/or forms for login, register, etc.
    }
Viewing 1 replies (of 1 total)
  • The topic ‘I want search results to display only for logged in users’ is closed to new replies.