All Questions
Tagged with menus custom-taxonomy
57 questions
0
votes
1
answer
846
views
Display posts by alphabetical order
I just purchased a WordPress theme. I’m trying to sort post on one category into an alphabetical listing (glossary type of listing).
Example : https://www.udiscovermusic.com/browse-artists/
There are ...
1
vote
1
answer
33
views
Second Set of Eyes: One custom taxonomy shows in Appearance > Menus, one does not
I presume this is a scenario where I've overlooked something in syntax, or a basic setting. But I've looked it over so many times I need fresh eyes.
I have the following code which adds a Product CPT, ...
0
votes
0
answers
257
views
Add A CSS Class To A Menu Item When A Custom Taxonomy Term is Present On Single Post
I have a situation where if I'm on a single post page for a custom post type, if a custom taxonomy term is present I want to highlight the main nav menu related to that taxonomy term.
On archive ...
2
votes
1
answer
2k
views
How to dynamically add custom taxonomy terms as a sub-menu of an existing menu item, using custom walker class
Desired outcome
I have a custom post type and belonging to it, a custom taxonomy. I'm trying to get my child theme dynamically add the terms belonging to that taxonomy as a sub-menu under a certain ...
1
vote
2
answers
2k
views
Hide product categories and taxonomy terms in menu if empty
I've been researching this and had no luck so far.
I have a WooCommerce store with a main menu showing product categories (product_cat) and brands (yith_product_brand) which is a custom taxonomy.
I ...
2
votes
2
answers
2k
views
Remove pagination from WooCommerce product categories on admin edit navigation menus
I am creating a WooCommerce store with a very big nested menu structure. Is there a way to stop my product categories from paginating?
I need them to all show in one big list so that I can use Ctrl+...
0
votes
0
answers
33
views
custom taxonomies menu
I have added 3 custom taxonomies. I would like to add the taxonomy Titles to my menu? I can add the terms but it is the actual names (Globale Nachhaltigkeit, Regionen and Medien) of the taxonomies ...
0
votes
1
answer
106
views
Displaying Pages in Nav Sub-Menu with Specific Taxonomy Terms?
I am trying to see if there is a way to have the sub-menu items change depending the taxonomy of the of the page that is in the menu? I currently use the following WP_Query I use to grab the top three ...
0
votes
1
answer
696
views
Automatically add CPT UI categories to the menu
I have created a CPT UI and selected built in taxonomies "categories (WP CORE)". I have added some records and every time I add a category and main record, I want them to display in the main menu ...
0
votes
2
answers
3k
views
Adding a custom taxonomy to "nav_menu_item"
Does anyone know if there is a way to handle a custom taxonomy for the nav_menu_item built'in post type?
When I assign my custom taxonomy to this post type, i don't see any change in the menu editor......
1
vote
0
answers
330
views
How to add Post Format Taxonomy Archive page in the menu?
I have customized the archive template for the post format using the Wordpress template file structure.
I have the file: taxonomy-post_format.php which works fine.
The page is then accessible ...
0
votes
2
answers
38
views
Which Template Page Should I Use?
I have created several custom post types (for example: FAQs, products and case studies) and registered a global custom taxonomy for use across all CPTs. In my case this taxonomy is called audiences. ...
0
votes
1
answer
563
views
Custom post type category link + add to menu
I am currently developing my own travel website/blog. I would like to add "hotels" and "tips and tricks" to this website. I have made two custom post types that use the default post categories as a ...
0
votes
2
answers
210
views
Corrupted nav-menu?
I am currently debugging a WP install with lots of plugins and Avada theme (Fusion core, Fusion Builder)
The thing is I can't edit the current Menu.
When I select an item and add it, the spinner pops,...
0
votes
1
answer
75
views
How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
How to add all existing Custom Taxonomy to Admin Menu Creations Interface?
1
vote
1
answer
547
views
How to get all taxonomies which can be added in menu?
I am trying to get list of available taxonomies which WordPress admin users can use in menu section, like Categories, Tags, Product Categories, Product Tags or any custom taxonomy for custom post type....
0
votes
1
answer
80
views
Wordpress Main Menu with dynamic url
I am having taxonomy in custom post type like cities Las Vegas,Los Angeles,Nashvile etc. I am having main menu like Home About Us (http://www.example.com/about-us) and Contact.
Now When i am on ...
1
vote
1
answer
1k
views
Add/Remove current_page_parent class
I created some custom post types and custom taxonomies, if I'm on an archive page of the custom taxonomy, the Blog menu item is highlighted due to the current_page_parent class.
Well this is obviously ...
1
vote
1
answer
2k
views
How to display submenus on page based on referring top-level parent?
I am trying to display a secondary menu on pages that displays all the coordinating sub-pages of the top-level menu item they navigated there from, but my issue is that some pages appear under ...
1
vote
2
answers
3k
views
Get custom category image from menu
I've got myself into a little pickle, and while I'm so close, my understanding of PHP is letting me down.
I want to display the image associated with each category in the menu - working from the ...
0
votes
1
answer
615
views
How to make a single Menu Item call another Mega Menu for Custom Post Types and Custom Taxonomies?
I'm trying to build a hierarchical directory using custom post types and custom taxonomies as I've described in another question.
My problem is that I cannot figure out how to make those posts ...
3
votes
0
answers
1k
views
Create Custom Post Type Archive Page with Sub Categories Navigation Sidebar
I have 8 custom post types (which are actually for 8 different blogs and used as "blog landing pages"). Each custom post type is also a Blog Category and each has several sub categories to it. For ...
0
votes
1
answer
4k
views
Highlight specific menu item when custom post is page
I know that this question was asked many times, but I did not find a really good solution for my problem:
I have a custom post type "event" with some categories like "lecture". For each category, I ...
0
votes
1
answer
114
views
Same menu for different taxonomies to reach different content
I'm using a "location" taxonomy to show the same website for 4 different locations. Each of them will have the same categories which I want to display in a menu.
Is there anyway to create the same ...
1
vote
1
answer
82
views
Correct classes for WordPress menu items
I have been trying to get the current menu item to my custom post types. I cannot get it to work, and when looking at my menu, I am wondering, that if everything is allright.
Which are the correct ...
1
vote
2
answers
10k
views
add taxonomy as one of menu items
I have created a custom Taxonomy called Documents and I want to show it as one of menu items, I am only able to choose from its posts. How shall I do that?
As below picture I am not able to choose ...
0
votes
1
answer
1k
views
List all posts from custom post type by taxonomy
Having custom post types with taxonomies.
Lets say I have a custom post type "Products" with taxonomies "new", "old", "fashion".
Now I have a Nav where I can click on wordpress.private/products/new/...
1
vote
1
answer
3k
views
Custom Taxonomy Navigation, with current menu items for children?
Is it possible to have a custom taxonomy navigation, with added active/current-menu classes if the post your on is within that category/custom tax?
e.g you have a custom taxonomy called... Weather. ...
1
vote
0
answers
2k
views
Use custom walker to add taxonomy terms to main nav menu
I created a Custom Post Type: Product and a Taxonomy assigned to it: Products
So under that Taxonomy I can add different types of products (terms if i'm not mistaken).
When adding new products I get ...
1
vote
2
answers
698
views
Menu Multiple Taxonomies
I have a post_type "products" which has both "Category" and "Brand" taxonomies. Each product has exactly 1 Category, and exactly 1 Brand.
I would like to display a menu which first lists the ...
0
votes
1
answer
1k
views
Get the original menu item name string instead of the label
I am building a hierarchical menu of custom taxonomies and their related posts using wp_get_nav_menu_items as follow:
if( $locations = get_nav_menu_locations() && isset($locations['secondary']...
0
votes
1
answer
44
views
When filtering query on custom taxonomy; main menu dissapears
I have created a custom taxonomy, and that works.
But here is the problem;
I have created an archive page, which in the url gets e.g. this: ?category=23. Then, in functions.php, I do this:
function ...
0
votes
0
answers
2k
views
Custom Taxonomy Showing in WP Menu
I have 3 taxonomies bundled with my custom post type. I have noticed my custom post type(cpt) and 2 taxonomies won't show in the Wordpress menu system but 1 taxonomy will. Can anyone point me in the ...
0
votes
0
answers
30
views
Plugins for putting Custom Post Types into the Menu
I have been building a website that has numerous custom post types, and I have found one called WordPress Post Type Archive Links. This would allow me to add a link to the an archive of registered ...
1
vote
0
answers
193
views
Customizing Primary Menu to include custom taxonomy description
I've a hard time implementing the custom primary menu behaviour.
I've already:
Created a custom post type: products that has a custom
taxonomy: product_category associated with it.
Activated and ...
0
votes
1
answer
2k
views
Getting (Invalid) when adding custom taxonomy of custom post type link in menu [closed]
I am getting this message when I am trying to add a link to my menu:
I have created a custom post type and a custom taxonomy
<?php
/*
Plugin Name: Portfolio - Custom Post Type
Plugin ...
3
votes
1
answer
1k
views
Custom taxonomy position in admin panel
I can't figure out how to change position of custom taxonomy menu item in the admin panel.
Right now I have custom post type-- custom_1-- and another custom post type-- custom_2.
For custom_2, I've ...
1
vote
1
answer
2k
views
Date range filter for manage posts list on edit.php
I need to add some custom submenu links to the Posts menu in WordPress admin so content managers can click on a link and get a list of posts from today, yesterday or this month. The default date ...
1
vote
1
answer
1k
views
Recreating the hierarchy of taxonomies for a dropdown form menu?
I have a form that contains a dropdown menu. This form is on a page form.php and is not part of my theme. It exists outside of my site. This dropdown menu contains my list of values for a custom ...
1
vote
2
answers
106
views
Sidebar links for different pages
Hey all i am wondering what i need to add in order to have a different sidebar for a set page?
I created a category for the page (called PatientEdu):
And made sure the page was linked to the ...
4
votes
1
answer
926
views
Extend walker class with custom post types [closed]
I'm using the walker class below, but I can't make it work with custom posts.
class Zwp_Walker_Nav_Menu_Dynamic extends Walker_Nav_Menu {
function end_el(&$output, $item, $depth) {
...
0
votes
2
answers
11k
views
Get custom post type categories to show up in menus
I'm wondering how it's possible to add custom post type categories as an option to add as a navigation menu item.
What I have:
$portfolio_args = array(
'labels' => array(
'name' => ...
2
votes
2
answers
2k
views
Adding Custom Taxonomy Archive Link to Nav Menu Shows Up As (Invalid)
I have a custom post type "packages" with a taxonomy "Celebrations" that has a few terms in it.
When I try to add a link to my wp nav menu through Appearance > Menus and choosing the term I want from ...
-1
votes
1
answer
125
views
Navigation won’t update to show full path to single post
I have a site with a custom post type “projects” and two taxonomies “clients” and “mediums”. For the navigation I’m using a custom nav walker (that extends Walker_Nav_Menu). This all works very well ...
0
votes
1
answer
734
views
How can I create an automatic drop down menu with my tags?
I have another post type which isn't the default one.
I have four taxonomies attached to that post type.
And I have many tags attached to these taxonomies.
I would like to create a drop down menu ...
1
vote
1
answer
314
views
How to Display a menu only if it has Posts in Custom Menu?
I created a custom taxonomy as category and display it by wp_nav_menu. The problem is, so far there are some terms in the custom taxonomy has no post attached to it, but it still show in the menu. So ...
4
votes
2
answers
652
views
Taxonomy slug by term ID
I'm trying to modify wp_nav_menu to display term thumbnails. To get those thumbnails I need term ID and taxonomy slug: $thumbnailimg = get_the_term_thumbnail($term_id, '$taxonomy', 'medium');
I ...
0
votes
1
answer
175
views
How to looping taxonomy terms?
is there any way to loop terms in a way they display in menu?
Eg:
Let say I have 2 taxonomies in a post type - tax1 and tax2.
They are not hierarchical to each other.
If I have posts that have ...
3
votes
2
answers
3k
views
Custom metabox for menu administration page?
I've been googleing around but failed to find a solution for my need.
I'm using wordpress 3.0 and TwentyEleven theme as default pack.
In the Dashboard -> appearance->menus that allow user can ...
0
votes
1
answer
329
views
What is the current page's Taxonomy?
I need to be able to switch between the current page taxonomy so I can load in the appropriate menu:
$current_tax = 'need to get this from somewhere';
switch ($current_tax) {
case 'tax1':
...