I decided to do what I suggested at the end of the post:
public => false
in the taxonomy settings- Add
add_rewrite_tag
/add_rewrite_rule
to ‘unit_num’
and add apre_get_posts
action to tweak the query whenget_query_parm('unit_num')
is set.
This is all working well now.
(Often when you write a problem out on a forum it triggers a new outlook on the issue)
Related Posts:
- Can’t get a custom template taxonomy page to display
- WordPress database error: [Not unique table/alias: ‘wp_postmeta’]
- Custom taxonomy listing page when no term set (all terms)
- Removing taxonomy base using WP rewrite
- Custom taxonomy on permalink
- How to enable hierarchical permalinks for hierarchical taxonomies
- How much faster is a tax query than a meta query?
- Use custom posts as taxonomy term meta replacement?
- Remove Custom Taxonomy Base
- How can I set up a category “overview” page?
- Nice URLs for a Custom Post Type List with a Shared Custom Taxonomy?
- Dynamic page slug for Custom Taxonomies?
- Is it possible to sort the post based on a custom field?
- How to fix a double slash in custom permalinks with hierarchical taxonomy’s?
- Getting archive pages in WP’s AJAX internal link finder?
- custom taxonomies on permalink
- Pros and cons of using [taxonomy name] in place of [category name]?
- List Custom Taxonomy Values according to a Post Meta Value
- Permalinks for quote authors
- Change in custom taxonomy permalink causes 404 error for another custom taxonomy
- Taxonomy based permalinks
- custom taxonomy archive permalink shows 404 error
- Custom taxonomy term in WooCommerce product permalink
- Change URL structure of subcategory archive pages
- Add parent/child taxonomy to custom post type url
- Keep taxonomy base name in post permalinks
- get_the_terms() to show all custom taxonomies
- Single reusable value for post meta: Custom Taxonomy or Post Meta?
- Change permalink of post if it belongs to custom taxonomy
- Permalinks for custom taxonomy stopped to work
- Date archive permalinks for custom taxonomy
- Custom permalinks with hierarchical taxonomy – getting PHP warning
- What is faster: custom taxonomy or serialized post-meta for db retrieval? (over 60,000 posts)
- Is it possible to store Json data in post_meta and manipulate
- Add Custom Taxonomy for Blog Meta Info
- How to separate posts in loop?
- How do I modify taxonomy term slugs dynamically?
- Permalink help with default Posts and custom Taxonomy
- how to change permalinks format for pagination?
- Replace taxonomy permalinks
- Creating terms vs custom post meta to save data?
- How do I create a permalink structure with 2 taxonomies
- Base permalink for custom taxonomy
- Rewrite Rules returning wrong data
- Does using custom taxonomy is more CPU efficient than using meta_data?
- How to change url for taxonomy pages?
- Query custom taxonomy by term id?
- How to customize custom taxonomy url?
- wp_query not resetting, last post hanging
- Duplicate slug/permalink issue
- How to add hierarchical taxonomy with parent child relation to URL?
- WordPress modify Settings > Permalinks (options-permalink.php) Add CPT Permalink Options
- Count of posts by different parameters?
- How can I add a custom permalink to a term?
- Permalinks with custom taxonomies and regular categories
- WooCommerce custom taxonomy as meta?
- Need equivalent of single_term_slug
- 404 Error on Custom Post Type / Custom Taxonomy
- How to define %category% for custom taxonomies?
- Custom Permalink Structure for terms/taxonomies of custom post type
- Sort taxonomy page alphabetically by meta rather than default post date
- How Can I Remove Child Slug From Grandchild Slug When Using Duplicate Grandchild Slugs?
- Change the full permalink (URL) of a single post by connecting it to a specific page
- Prioritise Pages over Taxonomy Term Root Archive, but not Taxonomy Term Child Archives
- How can I rewrite the URL of my custom taxonomy to include the year?
- How do I get the correct URL?
- Convert post meta to custom taxonomy?
- Remove custom taxonomy slug from URL
- How to replace custom post type with custom taxonmy in permalinks
- Get taxonomy link with post type slug prefix
- Count tags for current post and save into custom meta field (and update it on post edit)
- How To Create Dynamic Permalink To Custom Taxonomy List of Current Posts?
- Restructuring permalink with more than one taxonomies
- Is it possible to sort the post based on a custom field?
- Custom taxonomy return 404
- Permalinks incorrectly inserting multiple categories
- Custom post type term names with ampersand in the term name
- WordPress Taxonomy Permalinks – Custom?
- Need help understanding a rewrite with multi-level taxonomy
- Looking for suggestions on creating simple database (Help!!)
- Broken paths on taxonomies after changing permalink to post name
- Custom taxonomy rewrite in permalinks for posts gives 404 on pages
- Permalink Rewrite to include Custom Taxonomy Term
- Multiple taxonomies, what should the permalink look like?
- get meta fields and taxonomy of any post type
- Where to put a migration script to switch post information?
- Taxonomy to WordPress Permalinks of custom post type
- Update fields with post object and custom tax with wp_insert_post
- How can I show custom field according to taxonomy?
- Permalinks not working on MU network with domain mapping
- Custom taxonomy with custom meta value is not sorting correctly (query returns the same value for orderby regardless of sort column click)
- Optional taxonomy in cpt permalink
- post_type_link not working for posts without terms
- Child terms with improper parent in the url should redirect to 404
- Using Custom Taxonomy in Default Post Slug
- All posts are still shown when adding category argument to query
- Get all terms, including unchecked, or get the terms outside loop
- Are taxonomy hierarchies possible?
- Nested Accordions For Taxonomies [closed]
- Two Permalinks with one Taxonomy (custom taxonomy) and (custom post type -> custom taxonomy)