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
- Right Permalink for Custom Post Type with number slug
- Remove slug from custom post type post URLs
- Redeclare/Change Slug of a Plugin’s Custom Post Type
- Resolve a custom post type name vs. page permalink conflict (same slug)
- Theme localization of “slugs” (custom post types, taxonomies)
- Custom Post Type Slug / Page Slug Conflict – Prevent use of reserved slug on page save?
- How do I get a post (page or CPT) ID from a title or slug?
- How to get custom post type label and singular label from its slug?
- Custom Post type & Taxonomy URL structure
- custom slug for custom post type
- Custom post type yearly/ monthly archive permalinks
- Slug Formatting : Acceptable Characters?
- Disable permalink on custom post type
- Get list of all registered post types slugs
- Combining Multiple Taxonomies in one URL
- 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
- Taxonomy archive with same slug as custom post type?
- 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
- Taxonomy page returns 404 page not found
- Prepend meta_value to permalink of post
- Custom Post Type – Same Post Name, Different Post Type
- Priority for Categories, Tags, Taxonomies, Posts, Pages and Custom Posts with same url
- How do I redirect all 404 errors of a specific post type to another URL?
- Setting a title on a Custom Post Type that doesn’t support titles
- Reslug a Custom Post Type
- Removing CPT slug from URL results in 404 error for archive page
- Custom Post Type pagination when CPT ‘rewrite’ rule and a page have the same slug
- Remove Slug from Custom Post Type results in 404
- Force unique page slugs across all post types
- Getting Post ID from slug during init
- Custom Slug for a custom post type and default post
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Custom post type’s slug gets wrong when adding a custom meta box
- How can I fix a slow redirect after form submit from frontend (no plugin)?
- Interesting Custom Post Type Slug with Taxonomy and Custom Field
- Custom Post Types Not acknowledged for date.php template
- Rewrite CPT slug with two taxonomy slug instead of one
- Get slug to point to different content of the same post
- Bulk 301 redirect for custom post type
- WP query by custom post type slug/name
- 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
- Remove Taxonomy Slug when No Taxonomy is Assigned to Custom Post Type?
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- Custom Taxonomy breaking pages permalinks
- Using custom post type parent as slug
- 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
- Rewrite rules for custom post type slug
- How to redirect wp-admin/index.php to a custom post type?
- How to set up htaccess to redirect a particular post type or subdirectory to HTTPS?
- Automaticly add slug to posts
- Redirecting when changing custom post type slugs?
- Make slug as ID Number for custom post types
- Different permalink for CPT and regular Posts/Pages but why?
- How do I fix permalinks for custom post types that has the same slug as a page?
- Custom Post Type without an archive page
- How to remove slugs from multiple custom post types
- Delete link on single-custom.php with redirection
- Custom post type and taxonomy slug issue
- Redirect page to first post in custom post type
- Custom post types archive redirect
- Does WordPress limit the length of slug names for Post Meta or Terms?
- Custom Taxonomy Permalinks Redirection
- Create/Edit posts and auto-redirect back to listing page
- Why does wordpress keep adding postname to my CPT’s permalink in the end?
- Wrong generated page_name/slug on first publish of custom post type
- Remove post type slug of all post types from permalinks
- Stop / prevent WordPress from updating permalinks of custom post type
- Append date to custom post type url slug
- Custom post type redirected to homepage – how to debug
- CPT custom archive template does not get loaded
- Am I using the flush_rewrite_rules function in the right place?
- Rewrite slug for CPT
- Is there a way to have custom post type and page with the same slug?
- Change custom post type slug from plugin options
- Using Same Slug With Multiple Post Types
- Rewrite post type slug only for child theme
- 301 redirect for converted post type
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- How to add a post slug to a url?
- 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
- How to target a specific custom post type post and its all children and grandchildren?
- Custom rewrite url category
- 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
- Allow duplicate slugs for custom post type with taxonomies
- redirect automatic page that serves custom posttype content
- Nested Custom Post Type or Custom Post Type Parents?