Asking this question gave me an idea. make the single-[posttype].php
and inside it just put
<?php wp_redirect(get_page_uri(get_page_by_path('your-page-slug')); ?>
also works with get_page_by_title()
This will direct the preview post and view post link on the admin create post page to the page you want.
Related Posts:
- Resolve a custom post type name vs. page permalink conflict (same slug)
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- Customize Edit Post screen for Custom Post Types?
- Filter by custom field in custom post type on admin page
- Showing User’s Post Counts by Custom Post Type in the Admin’s User List?
- Multiple custom post types under one admin menu
- How can I change the admin search posts fields?
- Custom post type: Add “Edit | Quick Edit | Trash | View” links to date (if title is not shown in column)?
- Custom post type yearly/ monthly archive permalinks
- Admin Area Custom Type Search By Meta Fields Without Title & Content
- How can I filter posts by post_parent in the admin?
- Filter custom post types in admin not working
- Create a dropdown with Custom Post Types as option in admin
- Filter admin columns by custom post field value
- Is it OK to move admin menu items?
- Filter by custom Field for Custom post type Admin Listing
- Admin Post Update Redirection to Posts Screen
- Renaming Menu Item within Admin Menu Section for a Custom Post Type?
- Custom Post type sort order not working in the admin area
- How to get search results in the backend admin on a custom post type?
- Add custom column to custom post type overview in backend
- How do I redirect all 404 errors of a specific post type to another URL?
- Unable to filter on field on edit.php page
- How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- No results searching custom post type in admin panel
- Bulk 301 redirect for custom post type
- Actions that Run on Admin Edit Page Load After Posts Are Queried
- Change admin post thumbnail size for custom post type only
- Filters post in admin with dropdown select, custom post type
- Redirect to post with only post ID in the URL vs post_type/post ID
- Admin List Dynamic Heading
- WordPress User Roles, Custom Post Types, and Admin views
- Settings page above CPT page in admin section
- Using WPAlchemy metabox values in another metabox
- Add text to wordpress admin ‘Add Post’ edit
- Changing ‘view’ link for custom post type on list post screen?
- How can I change the title of an Add New page in Admin for custom post type
- How to customize admin posts based on the user who is logged in
- Set a default category – if the user didn’t select one- before creating a post
- How to redirect wp-admin/index.php to a custom post type?
- Different permalink for CPT and regular Posts/Pages but why?
- Add html to cpt main page / admin edit.php
- Custom Post Type without an archive page
- How can I create a custom meta box to add an mp4 video to a page?
- Redirect page to first post in custom post type
- Remove rows in the manage post/page view
- Custom Taxonomy Permalinks Redirection
- Is there a way to have the view link on manage posts page to open in a new window or tab?
- Create/Edit posts and auto-redirect back to listing page
- Access $post object when adding custom columns to list table
- Add acf field in title (admin table)
- Custom post type “preview” not working
- Get parse_query filter to return slug instead of id
- Custom Post Type Nav to Subpage
- 301 redirect for converted post type
- Selecting a post in Dashboard
- Custom admin post.php page
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Child post with numeric only slug keeps redirecting to parent
- On update or create post redirect to current post position in list
- Redirect custom post type category to other custom post type category
- Admin Column does not populate with data
- CPT Validation to not show “Post updated.”
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Some posts from custom post type to subdomains
- Custom post type isn’t working
- Add a ‘guide’ image to custom post type admin page
- Use remove_meta_box conditionally on custom post type
- New “Custom Types” item in admin menu. Is this a plugin or a new wordpress feature?
- Redirect to archive is single post has a certain term assigned to it?
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- How to check if post/page or taxonomy post is published by admin
- Linking to Post Types from wp-admin
- Plugin or method of allowing user to rearrange custom post types with drag and drop?
- CPT Columns doesn’t show categories
- sortable columns for multiple custom post types not working
- Create short URL with auto 301 redirect
- Showing User’s Post Counts by Custom Post Type in the Author.php?
- Filter posts of custom post type by meta key in (List All Section)
- Is there a hook between clicking on “Add new” and the edit screen of a new post?
- Require custom post type if is_admin() – template doesn’t show up?
- Function to add custom HTML into head in custom post-type list page
- using the loop in custom meta is messing up ‘add new’ post type
- WordPress admin for a custom post, hide/collapse the main “title” and “description” boxes
- Custom taxonomy permalink without term, redirection to CPT slug
- Redirect Existing Post to CPT
- Custom post type single page uses the right template in preview mode but shows a different template after being posted
- Create an administation subpage containing posts in a certain category
- Custom 404 redirect for a luddite
- Redirect sub-page URLs to parent without changing URL
- Customising the admin columns for a custom post type, but now most of the built in categories don’t display?
- Exclude categories For Custom post types
- Redirect Custom Post Type after user submits update
- Redirection error after posting a comment on a custom type post
- Collection of fields in a single post
- Display read only info on admin, custom post page
- Admin menu link with variable
- Custom Post Type slug has the same Redirection entry