Site Advanced Search Restrictions

Search Restrictions

This feature allows site administrators to add search restrictions for different user types. By default, WordPress site search is enabled for all users regardless of their type. You can use this feature to block certain site content from appearing in search results based on user types.

Blocking Specific Content from Search

You can either block certain posts/pages/custom post types from searching or entire posts/pages/custom post types from searching. First, we can use Private Content Settings -> Search Settings to block specific Id’s. Following screenshot previews Search Settings section.

 

search_settings_1

 

You can type the first few letter of post/page/custom post type title to load the list of post/pages/custom post types. Then you can select the posts/pages/custom post type to be blocked from searching. These posts/pages/custom post types added in this section will be globally blocked from all types of users regardless of their user type.

Search Restrictions by User Type

You can use Private Content Settings -> Search Restrictions section to block different type of content for different type of users in site search. Following screen previews the Search Restriction settings.

search_restrictions_1

 

Let’s take a look at each setting.

  • Everyone can Search – You can add support for searching posts/pages/custom post types for everyone. You can choose multiple options. Post types added in this section will be searchable for all users regardless of their type. So you can search all the posts from the selected types except the post/pages/custom post types blocked in Search Settings section. This setting should be used to add post types common for both Guests and Members.
  • Guests can Search – You can add support for searching posts/pages/custom post types for users who are not logged into the site. You can choose multiple options. Post types added in this section will be searchable only for guest users without an account. So you can search all the posts from the selected types except the post/pages/custom post types blocked in Search Settings section. Guests can also search the types added for Everyone can Search setting.
  • Members can Search – You can add support for searching posts/pages/custom post types for logged in users. You can choose multiple options. Post types added in this section will be searchable for members who have a account on the site and already logged into the site. So you can search all the posts from the selected types except the post/pages/custom post types blocked in Search Settings section. Members can also search the types added for Everyone can Search setting.
[mpc_textblock content_width=”100″ font_preset=”mpc_preset_17″ font_color=”#ffffff” font_size=”22″ margin_divider=”true” mpc_tooltip__border_divider=”true” mpc_tooltip__padding_divider=”true” class=”wpexpert-wpro-ad-free-docs-static-text”]WP Private Content Pro[/mpc_textblock][mpc_animated_text duration=”1000″ delay=”2650″ text_font_preset=”mpc_preset_17″ text_font_color=”#ffffff” text_font_align=”center” text=”Extend Features of Free Version|||Simple Setup|||Advanced Restriction Rules|||Membership & Private Page Management|||Priority Support|||” text_border_divider=”true” text_padding_divider=”true” disable_sides=”true” sides_font_preset=”mpc_preset_17″ sides_font_color=”#ffffff” sides_font_align=”center” border_divider=”true” padding_divider=”true” margin_divider=”true” class=”wpexpert-wpro-ad-free-docs-animated-text”][mpc_button preset=”mpc_preset_29″ url=”url:https%3A%2F%2Fwww.wpexpertdeveloper.com%2Fwp-private-content-pro%2F|||” font_preset=”mpc_preset_20″ font_color=”#ffffff” font_size=”16″ font_transform=”uppercase” font_align=”center” title=”VIEW MORE” background_color=”#2bb3e7″ border_divider=”true” border_css=”border-top:2px;border-right:0px;border-bottom:2px;border-left:0px;border-color:#ffffff;border-style:solid;border-radius:0px;” padding_divider=”true” padding_css=”padding-top:12px;padding-right:32px;padding-bottom:12px;padding-left:32px;” margin_divider=”true” margin_css=”margin-top:11px;” hover_font_color=”#2bb3e7″ hover_background_color=”#ffffff” hover_background_effect=”expand-horizontal” hover_background_offset=”0″ hover_border_divider=”true” hover_border_css=”border-radius:0px;” mpc_tooltip__border_divider=”true” mpc_tooltip__padding_divider=”true” class=”wpexpert-wpro-ad-free-docs-button”]