WP-Members: Membership Framework
[resolved] How to block search engine results for non registered users? (3 posts)

  1. abn89
    Posted 2 years ago #

    I need to block search engine results, offer details and single listings for non registered users...Can WP members work for this aim?I tried to install and use WP members, but it can block only pages or post..
    This is the website http://www.carplanning.it/noleggio-a-lungo-termine/ then click on HOME, the search engine is on the left. I need to block search engine results. Then, in the home page I also need to block "Leggi di piĆ¹" button for each car offer.
    Thank you


  2. Chad Butler
    Plugin Author

    Posted 2 years ago #

    You would probably need to customize your template that is used for search results. Where the loop is displayed, you could create a condition for user login:

    if( is_user_logged_in() ) {
         // user is logged in - normal Loop code here
    } else {
         // user is not logged in, display message or you could
         // you could display the wp-members login like this:
         echo do_shortcode('[wp-members page="login"]');
    } ?>
  3. abn89
    Posted 2 years ago #

    Thank you so much :-))))

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Members: Membership Framework
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.