is it because you aren’t returning a value to the parse_query filter? or otherwise passing it by reference.
function parse_query(&$query) { //added the reference &
global $pagenow;
$qv = &$query->query_vars;
if ($pagenow=='edit.php' &&
isset($qv['taxonomy']) && $qv['taxonomy']=='page_sections' &&
isset($qv['term']) && is_numeric($qv['term']) &&$qv['term']>0) { //added check for greater than 0 as the default ALL is zero and that throws some warnings
$term = get_term_by('id',$qv['term'],'page_sections');
$qv['term'] = $term->slug;
}
}
other than that this looks very much like the code i just used this weekend found: Adding a Taxonomy Filter to Admin List for a Custom Post Type?
Related Posts:
- How to remove “Taxonomy name:” from wp_title
- How can I display parent and child taxonomies in separate drop downs?
- Help With issue on pre_get_posts filter in taxonomy
- Taxonomies not appearing in columns on dashboard
- Filtering more than one term in a taxonomy in WP
- How to display term description in empty terms archive?
- Save Filter for Taxonomies
- How to filter WordPress search, excluding post in some custom taxonomies?
- Search by type posts and taxonomy
- Current category link filter
- How Can I Change a Taxonomy URL Based On The Originating URL?
- Simple Filter between multiple taxonomys
- Get parent and children taxonomy in different dropbox
- Remove custom taxonomy column from my custom post type columns
- Query posts using custom taxonomy and selected terms
- Build filter for post-type + multi taxonomies + multi terms
- Advanced search redirecting to another page then filter further
- Display taxonomy with a maximum number of letters
- Creating a drop-down and filter button for two custom taxonomies assigned to a custom post type
- Filter with two id of the same value CPT UI(taxanomies)
- Amend taxonomy to search in wordpress admin
- Include get_term_link inside search
- Keeping session instance of random display results over pagination breaks
- use apply_filters return taxonomies custom post type
- How to filter a page title with custom taxonomies
- How to paginate with an query var appended to permalink?
- Sort Taxonomy List by Custom Values
- get_the_term_list without links in 3.1
- Custom columns on edit-tags.php main page
- Creating a non-removable taxonomy term
- Is it possible to use one slug for Multiple Taxonomies?
- Is it possible to add taxonomies to user profiles?
- Get terms from multiple taxonomies
- How to restrict on selecting child taxonomy
- Is it possible to sort the post based on a custom field?
- How do I get terms as a list for a specific post?
- get taxonomy terms for parent and child
- On Taxonomy Template page, want to add Post_Type
- Ajax filter with custom taxonomies
- Separator for multiple terms
- The next_posts_link() show me a aditional page in blank
- Help building array hierarchically with taxonomies (to get posts)
- What are terms and taxonomy, how they related to post and how these three are stored in database?
- Get multiple term objects by ids
- Echo custom taxonomy term name
- Next and Previous links on a single taxonomy page only link to same term
- Why does WP rename similar “term name”-slugs in separate taxonomies?
- Move terms from one taxonomy to another keeping the hierarchy
- How can I get WP to build a feed based on multiple taxonomy terms
- Getting the selected terms for custom taxonomies in the editor
- Change permalink of post if it belongs to custom taxonomy
- Set custom post type terms by id without knowing taxonomy
- How to determine the depth of a term in a custom taxonomy?
- How do I Use Multiple Loops with WP_Query?
- $wpdb query a post type within a specific taxonomy term while ordering posts by custom meta value?
- Catchable fatal error on custom category post
- How to add contents of a custom field to a taxonomy term list?
- Google Map Shortcode for Custom Taxonomy/Post Types
- Querying two taxonomies
- How to target parent product category and its children using WooCommerce?
- Custom taxonomy query is empty. 0 = 1 in SQL
- How do you reorder the custom taxonomies on the right side of a custom post edit page?
- Custom Taxonomies not retaining hierarchy while importing from one site to another
- How to allow visitors to filter posts by multiple taxonomies
- What is the most efficient way of implementing a notification system? [closed]
- Check if custom taxonomy has posts with get_categories()
- How to add images to taxonomy terms? [duplicate]
- Echo custom taxonomy slug
- Remove a href from this code
- Adding a second custom taxonomy to a custom post type (both shown in its table)?
- REST filters only firing when I have a param set
- Get post terms from multiple custom taxonomies
- Terms Per Page in custom taxonomy Admin
- How to get list of only custom taxonomies?
- Disable a Custom Taxonomies default save mechanism
- Replicate Drupal form options as taxonomies?
- Random category URLs not working
- How to combine taxonomies into URL?
- Issue adding custom taxonomies to custom post type (PHP)
- Taxonomy URL rewrite whilst keeping filtered posts?
- Add terms to a taxonomy archive from within the same taxonomy
- Fill New Taxonomies
- Store a value in global scope after init hook is fired
- True or F False Setting of ‘with_front’ Parameter of Rewrite Is returning Exact Same result
- How do I show the parent term on a custom taxonomy template (not the ID)?
- Filter “get_terms” query
- Display taxonomies for custom post type
- Custom Taxonomy – Dropdown
- How to show selected check box vendors on front end home page?
- Error 404 in Custom taxonomy with pagination
- Need help understanding a rewrite with multi-level taxonomy
- custom taxonomy don’t return a value
- Change Permalink to Value of Custom Field
- Where to put a migration script to switch post information?
- Gravity prerender taxonomy [closed]
- Advanced search: roles and multiple taxonomies
- One taxonomy template for all categories?
- Removing fields from category/taxonomy edit form
- Error in Custom Taxonomy UI
- Remove ‘portfolio’ from URL