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" />
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