Once you are using POST
method, so url is not visible (and search engines don’t take is into account), send the request using query string:
add_query_var( array('post_type' = 'flyers', 'post_name' = 'flyer-01'), home_url() );
In this way the url generated is something like http://example.com?post_type=flyers&post_name=flyer-01
is ugly to see, but no one have to see it… and it works (it should).
Related Posts:
- Child post with numeric only slug keeps redirecting to parent
- Custom Post Type slug has the same Redirection entry
- Remove slug from custom post type post URLs
- How to get custom post type label and singular label from its slug?
- Custom post type yearly/ monthly archive permalinks
- Disable permalink on custom post type
- Using Custom Fields in Custom Post Type URL
- WordPress Custom Post Type is Matching on Partial Slug
- Change slug of registered custom post type in child theme
- Dynamic taxonomy in permalink made all other posts NOT FOUND?
- Post slug changed using code doesn’t reflect on editor when post is published
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Prepend meta_value to permalink of post
- Reslug a Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- Getting Post ID from slug during init
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Custom post type’s slug gets wrong when adding a custom meta box
- Custom Post Types Not acknowledged for date.php template
- Bulk 301 redirect for custom post type
- How to redirect all pages of a custom post type [duplicate]
- Can’t edit Custom Post Type slug/permalink
- Redirect to post with only post ID in the URL vs post_type/post ID
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Post Type with two hierarchical Custom Taxonomies: strategy to generate best permalink structure
- Custom post type with slug for plural (archive) and for single
- How to redirect wp-admin/index.php to a custom post type?
- Automaticly add slug to posts
- How do I fix permalinks for custom post types that has the same slug as a page?
- Custom Post Type without an archive page
- Delete link on single-custom.php with redirection
- Custom post types archive redirect
- Create/Edit posts and auto-redirect back to listing page
- Why does wordpress keep adding postname to my CPT’s permalink in the end?
- Remove post type slug of all post types from permalinks
- Rewrite slug for CPT
- Is there a way to have custom post type and page with the same slug?
- Using Same Slug With Multiple Post Types
- Rewrite post type slug only for child theme
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Adding Post id to the end of slug in a Custom Post Type
- Remove the parent slug in a CPT URL
- Permalink for a custom post type isn’t working and I don’t know why
- Index page with the same id as the slug
- Redirect 404 page with ID in slug to associated page with same ID in slug
- How can I make the slug of the taxonomy also the slug of the custom post
- Assign same parrent Page to pages AND custom post types
- Multiple (two) category postings on the same page.
- Removed custom post type slug but not working for child pages
- Some posts from custom post type to subdomains
- Custom Post Type archive-{post-type}.php not working
- Custom post type single page (single-{CPT-name}) 404 when slug includes hyphens
- How do you create %post_type%/%postname%/ permalink structure?
- Slug for custom post type
- Custom URL redirect in WP
- Redirect to archive is single post has a certain term assigned to it?
- Using page slug in wp_query
- Redirect to first child on Custom Post Type (without template)
- How to get postname in custom page?
- Listing all slugs?
- WordPress Custom Post Type – Rewrite Query
- Changing CPT slug and taxonomy already registered in parent theme
- Custom Post Type for Shortcode Use – Prevent it display as a post (with slug)
- Custom taxonomy permalink without term, redirection to CPT slug
- Custom post type and multi taxonomies + customize url
- Custom Post type dont use custom page template (slug is not right)
- Redirect Existing Post to CPT
- Show code dependant on CPT & category
- How can I write slugs / permalinks as: custom post type -> custom taxonomy and custom post type -> custom taxonomy (one CPT and many taxo)?
- Custom Function to redirect singular post if specific meta field is empty
- Change permalink incrementor into pseudo-subdirectory
- Custom Post Type duplicating slug for new posts
- Custom 404 redirect for a luddite
- WordPress page not showing up – replaced with last 10 posts?
- WP gives 404 error for custom post type with GET variable
- Display a Custom Post Type within another with hierarchically slug
- Redirect sub-page URLs to parent without changing URL
- Getting a 404 on single custom post type page when using rewrite on a custom taxonomy
- How to develop custom URL redirection
- Generate slug and meta data if meta field is empty
- Redirect Custom Post Type after user submits update
- Redirection error after posting a comment on a custom type post
- Add category slug as class attribute in a link array
- Costum post type with costum (sub)taxonomy
- Remove Custom Taxonomy Slug only without removing Custom post type slug in permalinks
- Category slug not showing for Custom Post Type
- Custom Post Type Rewrite Rule
- How can I retrieve the slug for a custom post type via name?
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- Ideal top-level slug methods
- is this a bug or not?
- Create page using same slug as custom post type
- Custom Post Type with multiple Custom Taxonomies / Hide Taxonomy Slug from URL
- Hide custom post type slug url from search engine [closed]
- Custom post type Premalinks main page and details page
- Is it possible to use a post name in a custom post slug?
- Custom slugs with dates & IDs on Custom Post Type
- How to change permalink structure off default posts and also CPT’s posts
- Add post id to url instead of WordPress default -2 suffix
- Taxonomy Archive URL + Template