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
- Saving Taxonomy Terms
- How to force one column layout on custom post type edit page?
- Automatically generate custom post title based on meta
- category__in not working on custom post type
- Ajax filter with custom taxonomies
- Create a relationship between two custom post types?
- Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
- Check if author or current user has posts published
- Make a function to run only for CPTs
- Overriding taxonomy and custom post type
- WordPress Custom Post Type Children Template
- Multiple level category drop-down from the WordPress dashboard
- Modifying custom post type created by WooCommerce
- Adding a metabox on a CPT’s submenu page
- Get Post Types in admin
- Create metaboxes based on custom post type
- custom post type and custom taxonomy
- Custom post type as child of page
- populate array with posts
- Transferring data to the end of a transaction with the Shopp Plugin
- Listing custom post types on archive page with array
- Get custom post type categories to show up in menus
- Building a Portfolio and need some direction
- Why is my custom post query shortcode only showing 1 post?
- Pages not appearing?
- How do I disable the built-in editor and automatically configure the properties of new pages?
- WP_Insert_Post creating duplicate posts when logged in
- cpt not display inside nav menu
- Move to trash custom post type post after ACF Date Picker date is older than today
- Display custom posts, ordered by most commented, without duplicates
- Custom Post type doesn’t appear in search results
- Issue with CPT posts within WP REST API showing as []
- New entries to custom post type produce 404 on single view
- WordPress post type for single page (without posts list)
- How to link 2 different post types programatically
- how to get the checkboxes check in custom plugin
- Howto: use existing post_meta as options for a different metabox (checkboxes or list)
- User submitted content
- WordPress and Unity high scores table
- pre_get_posts causes Custom Posts appear under ‘Pages’ menu
- Categorizing Custom Posts in Bulk Based on Title
- How to get the proper category in permalink with custom post type assigned to multiple categories