Skip Navigation

[Resolved] Hide content of custom post type from search engines

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 5 replies, has 2 voices.

Last updated by Minesh 6 years, 10 months ago.

Assisted by: Minesh.

Author
Posts
#613195
Screen Shot 2018-02-06 at 10.33.27.png
Screen Shot 2018-02-06 at 10.33.45.png

Hello,

I created a custom post type 'Membre' (Member) and already limited access to only logged-in users (Subscriber / Member or other roles) on this page : hidden link

When logging in, the information about members will be shown. However, the individual member page is public and can be searched through a search engine and content is shown.
Content of member : hidden link

I already checked this tutorial :
https://toolset.com/learn/create-membership-site-wordpress-using-toolset-plugins/restricting-read-access-custom-post-type-cpt/

Please suggest how I can hide this information from the public, thank you.

#613322

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

As I understand - when a user visit the URL as guest user: hidden link

You do not want to display any content on above URL- correct?

#613332
Screen Shot 2018-02-06 at 12.50.24.png

Hi Minesh,

Yes, I want to
* hide all the content of the post from non-authorized user (non logging user).
* I also want to hide the content from the search engine, for this part, I already configured Yoast SEO not to index the post but not sure if it's possible to make it also hidden from the search engine. Please refer to the attached photo.

Thank you for your help.

#613367

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

* hide all the content of the post from non-authorized user (non logging user).
==> Well - you can use toolset access shortcode to deny guest users.

[toolset_access role="guest" operator="deny"]

your content to hide

[/toolset_access]

See this image:
=> hidden link

More info:
=> https://toolset.com/documentation/user-guides/access-control-texts-inside-page-content/

* I also want to hide the content from the search engine, for this part, I already configured Yoast SEO not to index the post but not sure if it's possible to make it also hidden from the search engine. Please refer to the attached photo.
==> Well - Toolset is not involved in this question as it's completely different feature. However, I'm sharing the link here that may help you using robots.txt:
=> https://stackoverflow.com/a/36581362

More info:
=> hidden link

#613384
Screen Shot 2018-02-06 at 14.47.37.png

Hello Minesh,

I already protected the page from users with Access (only certain users with certain roles can see this page). This page displays a view listing all data of Custom Post Type Member (created with Toolset) .

My problem is that the individual Custom Post Type Member is not protected even though I have set the access to only logged in users. Please see attached screen.

I can configure each member (at the custom post type level) to set a password, but then I have to do it for every post manually. And the user has to give the password twice to access this data. Once when accessing the page, when clicking on the selected CPT, the user will have to provide a password again, this is not so practical and this is the origin of my question about how to hide the content in Custom Post type from non-authorised user.

Thank you for your help,
Sawitri

#613388

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

We have kind of issue just reported where guest restriction is not respected.

If you have Layouts plugin installed - Could you please try one thing :
- Deactivate layouts plugin
- Set your 404 as the error template in Access settings for guests
- Check 404 is still working
- Re-activate Layouts
- Check if 404 works
- Re-apply custom template layout in access