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 to assign a single-menu-template to a menu-items in a taxony/ cat/ subcat/ subcat-item
- How does WordPress manage to differentiate between post and page URLs without a distinct base, and how can I replicate this functionality?
- Getting titles from an array of IDs
- How to retrive Custom Post Type Meta Fields in Custom WP_Query
- Under What Conditions Can I name my CPT the same as my CPT Page?
- Passing variables through permalink structure in custom post types
- wp_query not returning my custom post
- Using page title as a link to term archive
- Adding an extra parameter [string] to my posts’ permalink?
- Custom post type 404 error on “default” or “numeric” permalinks
- Query Custom Posts – Add To Selection
- Problem while filtering by ‘category_name’
- All blog posts are not showing up
- add_query_arg() for custom post type on all visible links
- How to fetch posts that are stored in the different table than (default) wp_posts?
- WP_Query of a custom post type isn’t working
- WP_Query order custom post type with certain meta key value by post modified date
- Cant’ Display Custom Post Type Title Base on Tax Terms
- wp_dropdown_pages with tax_query clause
- Cache issue with WP_Query and custom field filtering
- Custom Post Type nest under a normal WordPress Page
- Post Type => Any conundrum
- How to setup different permlalinks for posts and pages?
- Permalinks for single-[custom-post-types] not working
- Query custom posts from custom taxonomy
- Custom post type category permalinks and archive pages
- filter the_content, custom post type, and wp_query
- Custom rewrite rules for /pastissues/%category%-%postname%.html
- Loop for custom-post-type comparing taxonomy terms for “related” posts?
- Displaying Portfolio Filter by Category Order (alphabetically)
- Add unique ID number to end of permalink
- Is it possible to have hierarchical taxonomy and hierarchical custom post types in one permalink?
- Make Next and Previous on single-$posttype.php use the same order as archive-$posttype.php
- Custom Post Type – Main page for certain posts
- Pagination does not work on Custom Post Type archive while trying to get load more function working
- Query Custom Post Type by Taxonomy
- Subpages Permalinks Issues
- Custom post-type custom query – show all posts
- Wp PageNavi only works with default permalinks on a custom post type?
- Custom category URL not displaying posts
- Multiple permalinks for a single post with multiple taxonomies
- Custom post type permalink structure to include the taxonomy
- Display featured posts for a custom post type by taxonomy
- either single-{custom}.php 404’s OR /taxonomy/ 404’s – custom post type and taxonomy permalinks
- Custom Post Type permalink doesn’t match post permalink
- WordPress custom posts and permalinks
- Get_the_term_list inexplicably adds values in foreach
- Single parent post lists child posts with pagination
- How do I list a custom field and custom taxonomies for each result in a loop?
- how to compare different timestamps in wp-query for events custom post types?
- Change permalink for custom post type?
- One Custom Post Type two different Templates
- Display custom-post type based on the Title matching the current selected value
- Custom Post Type Query W/Category Dropdown