Building Custom URLs in WordPress discusses how to use Pretty Permalinks to display posts using additional parameters.
Jump to the section on Custom Query Vars. That’s where your situation begins to be addressed directly.
In particular, you may want to use the example using ‘pre_get_posts‘ to retrieve parameters and adjust the WP_Query using a meta_query, so it doesn’t result in a 404 Error as a result of your additional parameters:
add_action( 'pre_get_posts', 'your_function_name', 1 );
NOTE: You may need to modify your customized url to read more like the following, in order to fit the example provided by this tutorial:
https://your-domain.com/automobile/porsche/model/911/name/carrera
In this example, “model” and “name” are keys, while “911” and “carrera” are their respective values. These can then be used for meta_query searching.
Related Posts:
- Custom permalink with pagination
- Getting hierarchical custom post type permalinks to work just like pages
- Custom post type 404s with rewriting even after resetting permalinks
- Custom post type archive 404’s with paginate_links
- 404 on child page when parent page slug is identical to custom post type
- Hierachical Custom post types permalinks not working
- Pagination Doesn’t Work
- Remove Slug from Custom Post Type results in 404
- Custom Taxonomy List links being re-written
- Custom Permalink with Dynamic Taxonomy for Custom Post Type – Works, but breaks other permalinks
- custom post type and custom taxonomy url conflict
- Bizarre Permalinks Issue: 404 Errors Everywhere
- Custom taxonomy in URL showing 404
- Wrong request query on cpt and tax
- Help with Elementor Pagination CPT archive 404 problem
- Using taxonomy term in CPT permalink – Pages 404’s
- How to have this permalink structure: post_type/postname/custom_inner_page
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Custom post type archive pagination 404
- Custom post type permalink tag 404
- Hierarchical permalinks for custom post type and taxonomy
- 404 in custom post type feed with mistake permalink
- How to solve this custom post type goes to 404 page?
- Problems with 404, .htaccess, permalinks and WordPress custom posts locally on Snow Leopard
- Custom WP_Query always respond with 200 status even when no entry
- One Custom post type 404’s others don’t
- Custom post type permalink returns 404 when set to private
- Custom post type slug 404
- How to filter a custom post type by custom taxonomy without 404
- Post type Permalink
- Permalink Trouble with custom post types
- Permalinks not working (404) for the ‘item’ post type
- Safe to throw 404 error in request filter?
- Custom Post Type Child Won’t Come Through With Pretty Permalinks
- Custom post shows 404 after theme change
- Enabling hierarchical in a Custom Post Type gives error 404
- Standard Page Child of CPT Not Found (404)
- Some permalinks on Apache/localhost development setup return 404’s when set to anything other than plain permalinks
- pre_get_posts gives 404 error on Custom Post
- Custom Post Type + Category archive
- Issue with permalinks for custom post type
- 404 Error On Custom Taxonomy Pages 2, 3, etc
- Wp-theme Development
- Custom Post Type, 404 error
- Custom Post Types, Single Posts returning 404 Errors – flushing permalinks does not correct
- Cannot create custom post types with a specific name
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Can a custom post type have a Parent Page?
- Rewriting a custom-post-type permalink with taxonomy term?
- How to retrieve all post titles of a specific post type?
- How to use a custom post type as front page?
- Custom Post Types 404 Issue
- Sort Order for a Custom Query in a Post Type Archive Not Working
- Using /%postname% for a custom post type
- Display several random posts, but make sure a condition is met
- How can I generate a RSS feed based on a custom WP_Query?
- WordPress search: pretty URLs (permalinks), custom post types and pagination
- Permalinks so that one custom post type appears to be a child of another, not working
- Custom query – alternate posts by category
- How to achieve this permalink -> category-name/custom-post-type-name/post-name
- Custom post type’s get_permalink returns wrong url
- ACF Relationships in Custom Post Type Permalink
- Prepend meta_value to permalink of post
- Search Custom Post Type with all meta attached?
- URL rewrite and navigation structure for wordpress custom post type
- WordPress monthly archive links result in 404
- Define permalinks for custom post type by taxonomy in WP 3.4
- Remove taxonomy slug when not assigning taxonomy with custom post types
- Custom post type loop split/ordered by taxonomy
- Display two post types ordered by two custom fields
- Add extra parameters after permalink?
- Custom permalink structure for custom post type
- Sort by two dates. Default entry date and custom field if present
- Querying CPT with Two Taxonomies
- Query Custom Post Types & category_name?
- How to create a permalink structure with custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- Share parent path between Custom Post Types and Pages?
- multiple url slug for single custom post type
- WP_Query is printing out only one post when posts_per_page is set to multiple
- WP Query to displaying date and posts for that date?
- How do I get the permalink structure to work like this?
- Custom Post Types not showing, custom WP_Query
- WP_Query | ‘post_type’ doesn’t work
- Filter by custom taxonomy slug on a custom post type
- Sorting multiple custom post types without a meta key/value pair by sort order
- Pagination : How to remove /page/x/ after a ‘POST’ action on a form returning to page 1
- Can I create a loop with multiple post types and specify different $args for each post type?
- Why does wordpress keep adding postname to my CPT’s permalink in the end?
- Display custom post type from dynamic custom field
- wp_query check if integer exists in custom field’s array
- Previous/Next Link by Meta Value in CPT
- How can I use get_post_meta with add_rewrite_rule to build custom permalinks?
- orderby rand is not working for a custom post types
- How to set a CPT to have a page as a parent, then rewrite urls accordingly?
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How do you paginate a query grouped by month?
- Change custom post type permalink to show name of post from another custom post type?
- Query Custom Post Type Taxonomy term with multiple parameters
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Custom post type and taxonomy permalinks