The problem is that you’re using term IDs in your URL, but that is incorrect.
Use the term slug instead.
For example, lets say we have a mytax
term named helloworld
with the term ID 1:
example.com/cpt/?mytax=1
404example.com/cpt/?mytax=helloworld
a cpt archive filtered by thehelloworld
term
Related Posts:
- Possible to filter the posts or categories that XML-RPC users see in their mobile application?
- Filter Posts by current Month
- Is it possible to apply filter to meta key value when querying posts?
- Want to use wp_get_current_user() in query filter
- Excluding posts by meta, and also keeping posts without the meta
- Customising the default wordpress search functionality
- WP_Query filter by custom meta
- List all categories that have results in a query
- Display posts from today and future in Elementor ‘posts widget’
- Having issue with dynamic data within restrict_manage_posts function
- Displaying posts on a page that have been assigned a value in a database
- Add option to query string before get_posts() is called on archive.php
- Filter on the day of the week from timestamp
- Admin view: filter posts by whether they have specific taxonomy attached
- Restrict access to custom post type and filter from every query
- Adding an orderby filter, casting postmeta with multiple keys
- Query Multiple Filters, one with Meta
- Sanitize and data validation with apply_filters() function
- How many filter/action hooks are healthy?
- Filter specific shortcode output?
- Valid characters for actions, hooks and filters
- How to hook into unregistering a widget instance?
- How can I extend the Gutenberg table block transform to allow colspans/rowspans on pasted table elements?
- How do I use the ‘http_request_host_is_external’ filter
- get_option() filtering and getting out of recursion
- Get excerpt from $post->post_content
- AJAX filter posts on click based on category
- How can I filter Microsoft Word gunk from pasted content?
- How to disable all WordPress emails modularly and programatically?
- How do I know if author field was changed on post save?
- Allow Profile HTML for select users
- WordPress 3.5+ upload tool filter
- Search with filters and title
- Some questions regarding filter
- Use content custom filter for all shortcodes
- Filter all html output
- Which hook is fired when inserting media into a post
- How to specify which category of the post to use in case of multiple categories
- Return array of images after content
- failed to filter hook `get_terms_defaults`
- How do I filter get_the_excerpt() but keep all of its functionality intact?
- Remove tags from the kses filter
- How to add a class to Tag cloud widget link?
- How to get all the predefined do_action() calls from an active theme
- Is there a get_post(s) filter that can alter/replace the output completely?
- WooCommerce Variable Product Price – Where is “From” text generated from?
- How to add numeric slug for child page in WordPress 5.9?
- add_filter does not work as expected
- ‘the_content’ filter removing html tags from post content
- Using wp_handle_upload() to Direct Specific Path by Using $overrides
- creat filter with wp_query
- Filter to shorten column content on edit-tags.php
- Formatting get_post content doesn’t allow JS content to function properly
- Proper after_setup_theme and wp_head cleanup
- Why doesn’t remove_action work in my plugin?
- Using a filter to modify Genesis wp_nav_menu
- How can I change the email that is inside the default email texts of wordpress?
- What is the earliest hook to modify post content?
- How to modify only part of a function through the filter
- Modify message displayed on post save
- Something is filtering my shortcodes… Can’t figure out what
- How should I be using filters and is_single together?
- Remove actions/filters that are set with create_function()
- I need to hook and change language of facebook sdk
- change “missing attachment” text functions.php
- Use has_filter on comment_post
- Hook in a sidebar widget and add some markup
- Get current taxonomy and display query accordingly
- return get_the_tag_list with whitespace removed
- How do I add tags to entire comments, not just their text
- ‘manage_users_custom_column’ is a filter, but ‘manage_posts_custom_column’ is an action. Why?
- comment_notification_text filter not working
- Modify author url display in edit-comments.php
- WordPress remove_filter not working
- add_filter( ‘the_title’ gets through this if statement twice
- Changing the category for existing Gutenberg blocks
- Filter Post Title without affecting screen-reader-text
- Hook to change the site URL
- Strange behaviour of REGEX in a WordPress filter (trying to suppress emtpy paragraphs)
- How can I see exactly what arguments are being passed through a filter so that I may modify them?
- Widget image reorganize layout
- WordPress set featured image to first image of the post
- Set Microsoft Word links to open in new window/tab
- WordPress get_avatar filter to match logins
- Modify category listing API response
- Auto-generated excerpt with shortcode and read more button/text link
- Converting restricted html in comments to bbcode
- What is the proper/best way to have multiple add_filter for wp-job-manager-resume
- Change shortcode output (filter?)
- How do I add a class to all sidebars to let a Google Custom Search Engine know not to index the content?
- How to replace all images in all posts and pages with a different size?
- How to add a class to Buddypress avatars in the Activity stream? [closed]
- using posts_where for meta data on pre_get_posts
- Updating User Profile on Registration
- can’t output gray scaled image I’ve created using add_image_size
- How properly write function to filter content in a template for plugin “multiple content blocks”
- ACF Load Field Groups Programmatically [closed]
- Why does using excerpt_more filter change link location?
- How to elect position of new item output in a dropdown when using add_filter
- How to remove a filter that is an object method?