Custom taxonomy sort by term meta in admin columns
Custom taxonomy sort by term meta in admin columns
Custom taxonomy sort by term meta in admin columns
You can add a custom tax_query to your filter, and pass the search query to it: function searchfilter($query) { if ($query->is_search && !is_admin() ) { $s = $query->get( ‘s’ ); $query->set(‘post_type’, [ ‘lesson’, ‘series’ ] ); $query->set( ‘tax_query’, [ [ ‘taxonomy’ => ‘your-taxonomy’, ‘field’ => ‘name’, ‘terms’ => $s , ] ] ); } return … Read more
removing custom tax & CPT slug, adding taxonomy term in front of custom type
How to display custom taxonomy in multiple columns?
Filter custom post type archive page with custom taxonomies (categories) with AJAX
I think you need to add a rewrite rule as the “normal” rewrite rules don’t support your wanted permalink structure. For your use case, you can try it like this: First: remove the “rewrite” argument from your register_taxonomy arguments (not sure if you definitely need to do this, but it works on my site) Second: … Read more
Keep taxonomy base name in post permalinks
After combining a bunch of pieces of other answers I got it working! So here’s the solution for those of you who are struggling with this too: This post and this one helped me out some, so thanks to those guys. Note, all this code, plus your initial custom post type and taxonomy registration code … Read more
Output the content of a term organised by each of the CPT?
List custom post type by custom tax term as page title