Changing current_page_item
to current-menu-item
solved the problem because these were taxonomies and not pages.
Whats the difference between current_page_item and current-menu-item
Related Posts:
- get_term_by not working when in functions.php
- Can I turn off write-in tags/taxonomies?
- Formating the_terms() function output
- Scheduling posts to update once per day with wp_cron
- Possible to register multiple custom taxonomies in one function?
- How do I display a tag cloud with both post tags AND a custom taxonomy?
- Can I turn off write-in tags/taxonomies?
- How do I add customize_register action AFTER adding a custom taxonomy
- How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
- Check if term is in a taxonomy?
- Insert HTML inside link in a walker
- Customizing Primary Menu to include custom taxonomy description
- get_terms not returning any custom taxonomies
- Display formatted list of taxonomy terms with last seperator different
- How to call a custom taxonomy term name inside a function?
- Update Post Taxonomy Automatically Based On Date
- Taxonomy archive template not working
- Running a function only once when a taxonomy term is changed
- How to add meta fields to custom taxonomy add/edit page?
- WordPress shortcode Issue!
- Automatically Populate Post Taxonomy Data Based on Post Author Meta Data?
- Where to put code to get custom taxonomy term id?
- Function code problem
- I’ve got a function that auto creates taxonomy terms – Can it auto delete them as well?
- Exclude Specific Term from Search
- Can I lock down custom taxonomies on a parent term level, but not a child term?
- Including all terms in wordpress tax_query
- term_description help
- register_rest_field for custom taxonomy fields that are assosiated with custom post type
- Term Checklist Walker – Disable Parent Categories
- Limiting number of custom posts shown on taxonomy page
- How to remove parent taxonomy name from the title generated by wp_title()?
- Group posts that matches a term in a loop
- Custom taxonomy template loop
- Adding session variable and/or cookie based on user-selected input
- How to Reverse Taxonomy Order
- Check whether a custom taxonomy term has published posts?
- Remove pagination from WooCommerce product categories on admin edit navigation menus
- Refresh Taxonomies
- Get Bottom Most Level Taxonomy Terms?
- Custom Taxonomy Tag Search
- Displaying custom taxonomy terms active trail
- List Recent Post Titles from Custom Taxonomies?
- Get taxonomy parent using child slug (from merged taxonomies)
- Creating a custom search form
- One query to get posts and their taxonomy terms
- Conditional display for custom fields/taxonomy
- How do I keep the page I’m on within the URL when running a search on a taxonomy?
- problem in taxonomy-{taxonomy}.php pagination
- Use custom walker to add taxonomy terms to main nav menu
- wordpress testimonials
- Query posts from a child taxonomy term id
- get_terms() duplicate first term of a custom taxonomy
- Retrieving only custom post types with two required terms (from diferente custom taxonomies each)?
- Best structure for entering recipes in a WordPress theme?
- Is this the proper way to get a taxonomy description into a post template?
- Website loading slowly – Advanced Custom Fields images
- How to check if a post has at least 2 terms from a custom taxonomy attached?
- Removing custom taxonomies from the admin menu
- Custom post type Category Display
- Custom Taxonomy template not display
- Get Attachment Category Name
- pre_get_posts post_meta event
- How can I add a custom permalink to a term?
- Adding Child Terms Programatically – No Warning but No dice either
- Custom taxonomy display name issue
- How can I get Taxonomy Images to work with ‘orderby’ argument?
- How do I hide a term from non-admin users in get_the_term_list?
- Set post terms by term id
- Query Results not being displayed please help
- Can I output a custom taxonomy as a submenu in the site navigation menu?
- Sort taxonomy page alphabetically by meta rather than default post date
- Custom taxonomy throw error 404
- using wp_insert_term to create custom terms for a custom taxonomy from frontend form,
- set object terms after some some time of published post – functions.php
- Get Terms of custom Taxonomy of products with certain Product Category
- Problems using get_the_terms in a plugin
- Clean Taxonomy terms in new post type wordpress
- add pagination in wordpress page template
- Custom dropdown list taxonomy not saved
- WordPress taxonomy terms archive template help
- How to get all the terms from a custom hierarchical taxonomy via REST api?
- Add parent menu item in sub-menu in custom nav_walker
- Remove taxonomy name and add .html extension in the custom taxonomy term URL
- wordpress does not see the correct custom taxonomy hierarchy
- Custom taxonomy shows full articles
- Pagination for Custom Taxonomy
- custom taxonomy not displaying
- Custom Taxonomy as Link
- Register custom taxonomy from a Advenced custom field option page
- WordPress doesn’t respect the template hierarchy?
- register and insert category manually
- Multiple category lists on one page
- New rewrite rules for custom taxonomy and reuse default
- How to associate string with individual use of taxonomy term
- Primary Taxonomy for Post
- Polylang non translatable custom taxonomy
- Trying to list custom categories in custom post type [closed]
- get_the_terms inside save_post gives old terms
- wp_get_object_terms count on taxonomies within an category archive