taxonomy
& term
won’t be set (in this case), since query vars are mapped from GET/POST.
In other words, $qv['large_feature'] = 291
(see wp_edit_posts_query()
and WP_Query::get_posts()
for the big picture).
add_filter( 'parse_query','convert_large_feature_id_to_taxonomy_term_in_query' );
function convert_large_feature_id_to_taxonomy_term_in_query( $query ) {
global $pagenow;
$qv =& $query->query_vars;
if (
$pagenow == 'edit.php' &&
isset( $qv['large_feature'] ) &&
ctype_digit( $qv['large_feature'] ) // stricter than is_numeric()
) {
if ( $term = get_term_by( 'id', $qv['large_feature'], 'large_feature' ) )
$qv['large_feature'] = $term->slug;
}
}
Related Posts:
- Ordering posts by custom taxonomy in admin area
- SQL to update custom post taxonomies
- Query multiple taxonomy in Custom Post Type
- Querying Posts by Taxonomy From Alternate Network Site
- Include different loop templates in search query
- WP_Query search posts by custom post type and custom taxonomy
- How to customize admin posts based on the user who is logged in
- Is it possible to create a shortcode that will query a post based on taxonomies?
- Show Two custom Post type and their posts on category page
- How to filter custom taxonomy categories on archive?
- Querying Term Posts in Loop
- Am unable to reset a query properly
- Get next and previous 3 posts in a term in single post page
- Making certain categories of CPT not publicly queryable
- Search / Filter posts on Title/Content OR Tags
- Customize my custom taxonomy table in Admin panel
- How do I move/order posts with a tag to the end?
- Specific query for custom post type
- Display post content with respect to its title?
- First custom field value (out of several) displayed twice after query
- WP_Query orderby and tax_query
- I am trying to hide a custom post type category to logged in users with Pre_Get_Posts
- WP_Query() with custom post type and taxonomy — get all terms?
- How to check if post/page or taxonomy post is published by admin
- Can I query posts by taxonomy conditionally based on post type?
- Query not work for current taxonomy
- Display a post from custom post type only if all the selected taxonomies and custom field value matches the record
- Custom Post Type not showing in main loop
- Custom taxonomy query showing more than 4 posts
- Custom types, taxonomies and query optimization
- Query Custom Post by taxonomy multiple categories
- Query custom posts from custom taxonomy
- How to divide Subcategories into pages of parent category wordpress
- Check that a slug is present in the get_terms request
- Is there a way to use ‘publicly_queryable’ => false only on specific taxonomy term?
- Displaying all posts by category and showing content on click
- WP_Query for custom taxonomies showing posts from non-specified terms?
- How can I group by Taxonomy on Custom Post Type while filtering out based on custom Meta
- Get posts of an specific term of a custom taxonomy
- Query Pulling the same post twice
- Query Only Show Text on Posts With Certain Taxonomy Tag
- how to limit query_post to first page?
- Listing custom post type items from a couple of custom taxonomies
- Create template for taxonomy results limited by Custom Post Type
- wp_list_categories() – current-cat class also inside posts?
- Showing the custom taxonomy parent term and child term of a post
- Custom Taxonomy Archives on Custom Post type Page [duplicate]
- Query Custom posts of same taxonomy as the post itself
- Custom Post Types, URL rewrite on multiple CPTs
- redirecting improperly after updating custom taxonomy term when referring from CPT edit page
- Template for custom post with custom taxonomy
- Selecting a post in Dashboard
- Best way to save horoscope data
- Querying both pages and posts
- Which post does a taxonomy term belongs to?
- How can I set taxonomy programmatically
- How to hook custom taxonomies to custom post types and make the permalinks work?
- Custom admin post.php page
- Custom post type multiple loop by taxonomy term
- getting all values of a custom taxonomy if there is no post
- custom types taxonomy hide_empty
- Help need making decision. Ads rotating site on wordpress
- Extending AZIndex plugin to use custom post types and custom taxonomies
- Categories of custom taxonomy don’t show any posts
- How to display custom taxonomies with links in filter menu?
- A question on creating filters for custom posts using taxonomy
- Conditional Query of Custom Post Type and custom taxonomy
- Listing tags from a custom post type
- List custom taxonomy specific to one custom post type
- Is $object_type truly required with register_taxonomy()?
- Custom Taxonomy back-end customizations
- Show a Category X’s custom post type on Category X archive page?
- A simple script to allow sorting of custom posts in admin?
- How do I associate a custom post type with another through a taxonomy or storing an ID in a custom field?
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Notify admin on new submit
- Meta query for custom post type ignored in main query
- Get Taxonomy Term Title by it’s URL
- Add custom taxonomy to post content body?
- custom taxonamy and post type
- Taxonomy custom post type URL
- Display as tree terms of taxonomy and custom posts for each term of taxonomy
- Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
- Custom post type url with category
- Custom Taxonomy terms aren’t getting referenced or saved in Quick Edit or Bulk Edit, only on Single product page?
- Querying Two Custom Post Types with OR Not Working
- Adding custom post category slug in permalink causes 404 error for pages and posts
- Add custom image size for custom post type or taxonomy
- Get taxonomy values based on wp_query results
- On update or create post redirect to current post position in list
- Display post as term id
- Ajax Custom Post Filter is not filtering
- Need Output Custom Taxonomy from Custom Post Type
- Display all taxonomy terms, add class if term applies to current post
- WordPress sort search results by custom order
- How to filter wp_list_categories output with some custom post type meta query?
- Custom Post Type – No Results Found
- Return the latest post from a custom Taxonomy and Post Type
- Cannot add category or custom taxonomy from admin. WordPress site is hosted in Windows 16 server via IIS. No XAMPP or WAMP
- Don’t know how to show custom taxonomies from a custom post_type