Here is what I do to sort my custom post type by custom taxonomy in the admin. I have a custom post type called plugin_filter and a custom taxonomy assigned to it called filter_group. I add the following filter to my plugin to make the field sortable.
add_filter("manage_edit-plugin_filter_sortable_columns", 'plugin_filter_sort');
function plugin_filter_sort($columns) {
$custom = array(
'taxonomy-filter_group' => 'taxonomy-filter_group'
);
return wp_parse_args($custom, $columns);
}
Related Posts:
- Filter admin columns by custom post field value
- Custom Taxonomy Template Post List with Sort Order
- Ordering Posts List By Taxonomy Terms?
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Custom Post type sort order not working in the admin area
- Sort admin area by custom Event Date field
- How to customize admin posts based on the user who is logged in
- Categories sorting
- Customize my custom taxonomy table in Admin panel
- Get parse_query filter to return slug instead of id
- Sort and filter custom post type posts by custom taxonomy
- Sortable column containing numeric values for Custom Post Type at WordPress Backend
- How to check if post/page or taxonomy post is published by admin
- Sorting the Loop by Taxonomy Value
- Sort custom posts by date and then by taxonomy
- week days sorting based on starting day
- Ordering Posts List By Taxonomy Terms?
- Custom post type taxonomy not sorting correctly
- How to have the same url structure for both a CPT and a Taxonomy?
- How to create custom url structure based on custom post type rewrite slug, taxonomy and category slug?
- create a subcatagory for a custom post type and out put url as posttype/subcategory/item
- How do I display the taxonomy term alongside the post type post title?
- Display custom post type category, while in a CPT category, then the posts beneath
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Display Custom Toxonomy In WordPress and theme Widgets category selection dropdown list
- Hide parent categories when clicked, and show it’s childs
- WP_Query inside foreach loop returning same value for all options when filtered using ajax
- Hide post navigation if current post is in a category with only one post
- Get related posts of child term of custom post type
- Limit amount of posts made within a custom taxonomy
- custom-taxonomy/post_name instead of the default post_type/post_name
- Filter term taxonomy metabox in custom post type
- Show custom post archive when custom post not specified
- Show custom post type relationships by taxonomy
- Group CPT posts by custom taxonomy
- Issue on Creating Custom Tax Term Dynamically From Another CPT Meta-box On Publish
- Filter CPT posts by one or more categories
- Custom taxonomy and custom post type – wrong permalinks and template
- Setting up taxonomy to relate various custom post types – advice on structuring?
- Getting categories of posts under a custom taxonomy
- Post count by month of taxonmy term
- How can I make the slug of the taxonomy also the slug of the custom post
- Query taxonomy of taxonomy of custom post type
- Taxonomies don’t show up on in the dashboard page for a custom post type in wordpress 5.22
- Can’t remove front from permalinks for custom taxonomy category page
- Store CPT ‘Reviews’ average ratings to a WordPress DB table or to a DB custom table?
- Custom WP Query on custom meta and sort by multiple meta keys value
- How to checked selected category checkbox when my custom post inserted from frontend
- Allow duplicate slugs for custom post type with taxonomies
- Options page – dropdown of users
- list taxonomies from a custom post type
- How to display Custom Taxonomy under Custom Admin Menu?
- Display a grid of taxonomy terms at root taxonomy page
- WordPress custom taxonomy, posts urls
- Listing posts under primary and secondary taxonomies
- Removing custom post type slug from URL
- Custom post type, organized by categories
- WordPress loop: Show only a Custom Post Type Taxononmy TERM
- How can I made custom taxonomies relationship?
- How to start a new post with custom Taxonomies already set?
- Nested Custom Post Type or Custom Post Type Parents?
- Customize Custom Post Type URL
- What’s the WP way to load remaining custom posts?
- WooCommerce sort products by the actual product width(not the shipping width)
- How to rewrite url for any specific taxonomy?
- Specific query for custom post type
- Custom post URL 404 error
- limit value taxonomy based on previous taxonomy value wordpress
- Dynamic dropdown select values depending on other custom field value
- Get unique superset of taxonomy terms from a list of custom posts in another hierarchical taxonomy
- How do I change the custom taxonomy slug to be the same as the custom post type slug?
- Limit number of custom posts per taxonomy
- Custom taxonomies relationship
- I want to change the word “Tags” in WordPress to something else, but how?
- Permalinks /country/city/cpt/postname/
- Number of Custom Post Types published are not being shown in the custom page
- Seamless permalinks between Custom Taxonomy and Custom Posts
- No Permission to add new Page, Post or CPT with Admin role
- Custom post type and custom taxonomy with the same slug using the file page taxonomy only as directory
- Metabox not show in categories custom post type cmb2
- What is the best practice for displaying my plugin content in themes?
- Categorize custom post type
- How do I display the taxonomy for a custom post type in an array
- Pretty URL for custom search for custom post type
- Custom taxonomy rewrite with query var returns %2F in URL
- WP Rewrite Rule Issue while using Custom post type & taxonomy
- How to list custom taxonomies in the back end
- Several CPT’s with same Taxonomy name but with different Terms for each
- Remove slug in URL custom post type
- Custom Permalinks with CPT and Hierarchical Taxonomies
- How to conditionally redirect to the post from a taxonomy page?
- How do I check if the user is on a taxonomy term parent, child or grandchild page?
- How do I display the grand child items of a taxonomy term?
- How to edit this code to get the categories in achieve page?
- Taxonomies relations
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Is it better to use WordPress Custom Post Types or Taxonomies?
- Get general taxonomy name for a Custom Post Type
- Display Custom Taxonomy Alphabetically
- Import data from CSV with custom taxomony empty