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
- Page Template as Custom Post Type Archive
- Limit the word count in the post title
- Get custom post type by category in a page template
- Set Custom Post Type title to the Post’s Date
- Associating an “author” with a custom taxonomy
- WP Admin default view mode for Custom Post Type
- Custom SQL Query on Custom Post Type. Order by Taxonomy?
- Full-Ajax Theme: parseJSON error while building a JSON object from a WordPress custom template
- Structuring a product catalogue in WordPress [closed]
- Get list of terms of current taxonomy archive for another taxonomy
- Query to get the author who having maximum number of post (custom post type)
- 404 Error with Custom Post Types and Taxonomy
- Custom post type with file upload – need to “set as field” instead of “send to editor”
- Making pages also serve as taxonomies? Or give full pages to taxonomies?
- WP Query—Relationship between two custom post types and their fields
- How to auto increment post title & post slug field?
- Plugin for custom posts and fields [closed]
- Setting proper query for multiple custom admin filters
- Custom meta box data array: foreach not working correctly?
- How to check if user meta field is empty in conditional else statement
- Display only one post each WEEK
- Custom Post Types don’t highlight in menu nav
- Callback to custom field is not working in WordPress REST API
- custom comments form for custom post type
- Advanced custom field boolean value in custom post type
- How do you create %post_type%/%postname%/ permalink structure?
- How to include category name/id in wp_query for retrieving “custom post type” from a particular category?
- custom permalink for post only not custom post types
- How to manage selected post-formats in custom post type
- Changing CPT slug and taxonomy already registered in parent theme
- Show post count number assigned to custom taxonomy
- Page-CPT.php redirects to archive or single.php
- Sanitaizing Select Optin For Custom Post Type Metabox in WP
- Is possible register two archive pages for single custom post type?
- Include “Scheduled” (“Future”) Posts in WordPress Post Navigation ( previous_post_link, next_post_link ) for a Specific Custom Post Type
- Where is get_post_meta value located?
- Custom Post Type – Display all, wrap in groups of 3
- Getting list of Categories for Custom Post Types
- get children from current variable (taxonomy) via shortcode
- Two blogs on same WP website
- Save post_parent in a custom post type
- WPNavi pagination links not working on custom pages