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, taxonomies, and permalinks
- How to set a custom post type to have viewable future posts
- Custom post type pagination 404 fix?
- How do I append multiple taxonomies to the URL?
- Custom rewrite rules for archive page and single post
- Rewrite rule for Custom post type Monthly and Yearly archive
- Having a custom post slug that clashes with an existing directory
- Help with a TV series Rewrite structure
- post_type_link filter causes 404 on the CPT page it’s used on
- Passing Variable as URL Parameter — Security concerns?
- Pagination throws 404
- How to create a permalink for custom taxonomies and custom post types like base-name/parent-tax/child-tax/custom-post-type-name
- exclude custom post type by meta key in wp_query
- Query for custom posts with a specific tag slug
- 404 error on custom post type
- WP-Admin edit.php & post.php slowdown after import of 10k users
- WordPress Orderby Numeric Value Not Working
- Parent & Child Taxonomy slugs in custom post permalink
- WordPress custom loop filter by meta_key and value with serialize data
- Use menus with anchors
- 404 Issue w/ Custom Post Type – using Meta for Permalink rewrite
- Mixing 2 custom post types with posts output in specific pattern
- Why is this query not working? (Standard posts + custom post type)
- Create a custom php page and load it at a specific slug
- Permalinks /country/city/cpt/postname/
- Seamless permalinks between Custom Taxonomy and Custom Posts
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Path to custom post type
- Make custom post types and pages place nice, re: rewrite
- Permalink problems with custom post type and custom taxonomy
- Custom Post Type Advanced Slug
- tax_query (if the terms are empty)
- Group by custom field value (start and end times)
- Get posts by category name
- WP_Meta_Query object with conditionals
- Problem while filtering by ‘category_name’
- Adding /blog in front of single posts (only)
- How to order query results based on if a custom field has been populated, then the order by the date of the post?
- How to remove /blog/ prefix for custom post types in permalinks?
- On saving Post My permalink is updated and category is removed automatically which cause the 404
- WP_Query get always custom post_type for first
- Category permalinks don’t work even after flushing
- Changing permalink of default Post with custom post
- Custom post type single with custom URL structure
- News post with multiple permalinks? When opened from different page
- Output all terms slugs for a loop filter
- Post Query , breaks layout if a post is deleted
- Not able to get my custom search result using meta_query and tax_query together?
- Multiple WordPress Sites, Same Database but Filtered Content
- Single Post (CPT) in two pages – Normal and Extended
- WordPress query in which condition uses custom field
- WP_Query function for custom post type
- How to pass taxonomy terms to WP_Query along with $args?
- Custom Post Type meta oembed html output resulting in WSoD
- shortcode for recent custom type post
- Custom post type split title, setup permalink accordingly