Go in your header.php
and add the following snippet where you want your tag to appear:
<?php
if( 'your-post-type' === get_post_type() ){
print '<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">';
}
?>
get_post_type()
will return the current post type.
Related Posts:
- How to noindex nofollow custom post type?
- Display all posts starting with given letter?
- Shouldn’t this be easy?! Custom post type/custom taxonomy permalink
- Custom Post Type Settings page, choose page to display archive
- Change Custom Post Type slug
- How to pass URL parameters for advanced taxonomy queries with multiple terms for one custom taxonomy
- How to order posts of a custom post type by date DESC in dashboard Admin?
- How can I list all the categories under a Custom Post Type (taxonomy)?
- How do I remove all the metaboxes for a custom post type?
- How To Set Custom Post Type Title Without Supports
- Slug for custom post type archive
- I have a CPT that have menu_order enabled, how can I make the menu_order values unique so it won’t have duplicates
- Add pre-existing meta box to new custom post type
- Use Custom Database with Custom Post Type
- Combine tax_query and meta_query in WP_Query
- automatically save custom post type title as a category
- IF statement in a do_shortcode
- Custom Post Type .current-menu-item not applying on Custom Post Type Archive Page
- How do you remove slug altogether from custom post type?
- Paginate_links won’t create the right links on a taxonomy filtered custom post type archive
- Make `previous_post_link()` Function Show The Post After Next i.e. Jump A Post
- How to Get Current Custom Post Type Selected Taxonomy Term (Not All Terms)
- WordPress or Drupal for data-heavy content site
- Unusual Custom Post 404 problem (NOT a permalink issue)
- WordPress As A Shared Items Collection
- Custom Post type in Author.php
- How to add and display reCAPTCHA in password protected form?
- Is there a way to get a file URL from the relationship ACF field?
- Replace li Items with divs with classes
- get_comments not working on custom post types
- Custom Post hierarchical to custom taxonomy
- getting all values of a custom taxonomy if there is no post
- How Can I Change the Custom Post Type Slug to the Taxonomy Slug in the URL?
- Use same slug base for Custom Post Type posts, and multiple taxonomy terms
- How to get list of taxonomy slugs ordered parents>childs?
- Custom post type / taxonomy rewrite archive page 2 gives 404
- How can I list Custom Post Types created with the Types plugin under categories?
- Show child custom post types on single-{parent}.php?
- Remove Post Custom Meta Box
- Custom Post Meta from custom metaboxes is randomly being deleted
- Is there any way to get list of all possible filter hooks for all post types?
- Limit the Title Length on Custom Post Type Archive Page to a Set Number of Characters
- Custom post_type search pages
- Custom Post Type Category On Admin
- Move content between custom post types
- Pods CMS: How to add custom column to Adnvanced Content Type
- Custom Post Type posts, conflict with posts after add_rewrite_rule to top
- Child theme blocks post from publishing [closed]
- How to query for posts (hierarchical custom post type) that have children but are NOT top level?
- Creating a “glossary” of WordPress posts of a specific post type
- Make a page an archive of a custom post type
- Create a WP_Query where if the first value of the first row is equal to the second compare other value
- How to filter url on post submission?
- Incorrect ordering of custom post type based on time
- Custom Plugin – Query CPT – Display Results
- Redirect to URL if x number of days passed
- How to controll the Posts post type and general wondering about WP data structure
- Using Custom Post Meta Values in Shortcode
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Posts 2 Posts plugin: best way to change connection field value?
- Auto Generate Post Title from 2 Custom Fields
- Single Parent post having children’s posts
- Custom posts stopped working after moving to new domain
- How to change the comments form title based on post type
- How can i redirect click to new admin page not to edit screen in post table
- How to display the post using a shortcode in WordPress?
- How to create an IF statement in the Main Loop for Custom Post Types
- dynamic vue widget inside custom post
- Grid slider with custom post type (how to filter with taxonomies?)
- Two and more diffrent custom page type in one permalink
- Duplicate posts in my custom loop
- How to display a custom post as a page (but unedited)?
- How to override post-new.php with custom template
- Pagination in wp-admin for CPT
- Populate metabox dropdown with post title from another Custom Post Type (issues with wp_reset / global $post)
- Add pagination to custom page
- Facing some Issues on Two Parts Custom Post Type Taxonomy Names
- Display subcategories in the filter on CPT
- how to use two permalinks for one custom post type based on categories
- Rewriting archive page slug to be different than custom post type slug
- Query stopped working
- Custom Rewrite Tag Structure
- Custom post type archive pagination with HTML5Blank theme?
- Custom pagination [duplicate]
- WordPress loop to pull 4 pages/posts by ID
- Re-using single CPT code with get_template_part?
- WP_Query and two custom fields returns no posts
- Custom post type Featured Image popup not working
- Parent cpt/child custom post type URL permalink relationship
- Ordering custom post type by custom field without a title
- how to show perticular category posts in custome page
- Reading csv from specific directory and insert it to custom post type (cron job)
- Problems with a custom meta_box
- create gallery page for specific post id
- Show custom posts with a specific “custom TAXONOMY slug” on startpage
- Plugin – read post into blank page [duplicate]
- How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
- Bulk update custom post types
- Custom order of CPT posts by title, in wp-admin area by default
- Dynamically count the number of custom post types associated to a custom taxonomy