Another option would be to set a 301 redirect for all the slideshow CPTs to redirect somewhere (like the home page). This would get picked up by Google, and also make sure no one accidentally gets on them
function rkv_slideshow_redirect() {
global $wp_query;
// redirect from 'slideshow' CPT to home page
if ( is_post_type_archive('CPT_NAME_HERE') || is_singular('CPT_NAME_HERE') ) :
$url = get_bloginfo('url');
wp_redirect( esc_url_raw( $url ), 301 );
exit();
endif;
}
add_action ( 'template_redirect', 'rkv_slideshow_redirect', 1);
Related Posts:
- Submit post and upload image from front-end
- Front end post editing using a form
- Add custom post type items from frontend
- Front end registration/login & publish/update 1 custom post
- List custom post types in dropdown
- How I upload, save and set a featured image from my frontend?
- Trying to save custom post type from frontend partially working
- Reason action hook won’t work with update_post_meta from frontend form? Alternative?
- front end radio custom taxonomy with custom post type
- Assign category to front end post
- Front end post form won’t post categories to custom post type
- Create and edit posts from front end
- Make custom post type display as a page
- Frontend Form for Custom Post Type
- Upload Image from Front End and Resize
- Frontend posting – everything saves other than checkboxes?
- I am having a problem with form updating/editing WordPress post on the frontend
- WordPress Create Post from front-end
- wp_set_object_terms() not adding new term to custom post and custom taxonomy
- How to restrict CPT post’s fronted view only for specific user roles?
- How to save custom taxonomy from front end post submission
- Insert Custom Post Type data from the front-end by a user
- Crafting WP_Query array, sort by date
- Posting to a Custom Post Type from front end – user generated content
- How to get the upcoming post ID from front end?
- How to make front end form only accept certain values
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- How To Import CPT With Only Few TEXT ACF Fields From Front End?
- Submitting Custom Post Types with custom fields from Front-end form
- How to properly delete custom post type posts programmatically
- Get id from metabox dropdown
- Get admin area editor in frontend
- Better approach for a WordPress Inventory
- Display custom meta on page that has been check in custom post type
- Update ACF fields on a frontend form? [closed]
- Add term for custom taxonomy from front end
- Post visibility option to theme front-end for author to select?
- display custom portfolio tags
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- How to create Custom image post?
- Front-end Image Upload to Custom Meta Box
- Preview url not working outside wp-admin
- Change custom post taxonomy values from front-end
- Saving Child Terms on front end not setting parent
- WordPress Front-End user restricted taxonomies
- Multi Photo Upload with Caption on Front End for Custom Post Type
- Front End users account with lots of user Roles (not Woocommerce)
- Show “Republished” badge when Post Date is manipulated
- Getting Custom post category from Form
- Add a meta to custom post type which corresponds to a particular taxonomy
- Add a image to a post published on a CPT from the front-end
- Extensive search filtering and results->PDF in the front-end
- Front end page submission form does not attach custom post type
- Issue with permalinks for custom post type
- Front end Submit not posting to Custom Post type
- Check in function on custom page
- create category upon saving post and save post in that category
- Front end post or photo or both
- Frontend delete CPT post with custom role user
- show current item in custom menu, when inside a custom post type
- How do I get the custom category URL from the custom post type?
- Associate all Custom Post Types with Taxonomy
- current-menu-item not added on page showing custom post type (rendered with archive template)
- How to define a term for custom taxonomy
- Saving fields in a drop-down in WordPress
- How to move a post to different post type with all meta data?
- Custom taxonomy or custom page templates?
- Make (custom) post type accessible only by custom query
- Assign post type to many users
- Custom taxonomies to define versions of a product
- WP_Query with custom post type ID
- why is the current page title being output?
- Adding guestbook to my wordpress site
- Meta box values not displaying in Post Edit Screen after save
- Exclude posts with custom taxonomy
- Forms and WordPress Nonce
- Invalid Taxonomy
- List custom taxonomy as navigation – taxonomy pages with all it’s posts?
- How can I set a meta value that will then affect other post meta values?
- How to select a template for a custom post type?
- Show Custom Message in WordPress Admin
- get_posts seems to be skipping the last Post
- Saving data for different custom posts
- Dynamically insert an article at the top of a taxonomy archive – or?
- Getting a custom post’s custom field based on another custom post’s custom field select
- Why do I have to press the “Update” button twice to save my meta box values?
- Count custom post type based on two meta data
- TinyMCE Buttons on Certain Post Type
- Merge page with custom post type
- Need help deciding on a taxonomy
- Inserting custom fields into single.php
- Alphabetically sort a taxonomy.php template by post title
- Inefficient Query Confusion
- How can I include active content in a custom post type?
- Create a custom post type for a photo post
- Display an icon based on post type
- Linking to Post Types from wp-admin
- Shared terms between taxonomies
- Creating a website with EVENT post type and PAGES as subpages of those EVENTs
- Fix permission error for deleting custom post from front-end?