Skip Navigation

[Resolved] Add noindex meta to custom post content template

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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9: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/Karachi (GMT+05:00)

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 1 year, 4 months ago.

Assisted by: Waqar.

Author
Posts
#2630991

Dear Sir/Madam,

As custom post content template is not a standard WordPress page or post, how can I know the visitor is now viewing the page is the the custom post content template? I don't want the custom post content to be crawled by google search engine, could you please advise how I can add the meta to the custom content template?

Meta to be added as below

<meta name="robots" content="noindex, nofollow" />
#2631409

Hi,

Thank you for contacting us and I'd be happy to assist.

At the database level, the Toolset's content templates are stored in a post type 'view-template'. But this post type is hidden and not publically queryable/viewable.

This means that visitors and search engine crawlers can go through the pages or posts where these content templates are used. But they can't access the single post pages for the post type in which content templates are saved.

Here is a quick test to confirm this. You can visit the single post page for any public page or post, through this URL structure:
{yourwebsite.com}/?p=123

Where '123' is the ID of the target page/post.

But, if you'll try to access the single post page for a content template by using its ID the same way, it will show a '404 - not found' message.

I hope this helps and please let me know if you need further assistance.

regards,
Waqar