A structure with links used to help you navigate from page to page.

learn more… | top users | synonyms

3
votes
0answers
29 views

Generate a tabbed submenu — from taxonomy term or submenu item — with sample content

I'm looking to generate a tabbed submenu from taxonomy term or submenu item and include sample content (three items per term/submenuu item). The styling I can do, the problem is the html generation. ...
2
votes
0answers
393 views

Add data-icon input to Wordpress custom menu links

I need to add a data-icon="" input to my Wordpress Custom Menu input box thing. This is so I can use an icon font and type the code in for a specific icon and in the CSS use pseudo elements to match ...
2
votes
0answers
109 views

Exclude Post Format from next_post and prev_post

Is there a way to exclude a specific Post Format from next_post and prev_post? I want my asides to show up in the regular list of posts on the main blog page, but when a user is navigating through ...
2
votes
0answers
606 views

Hierarchical Custom Posts - Highlighting Current Post in Sub-Menu

I have created a hierarchical custom post type called events and have used wp_list_pages to list the sub-posts for each event post (See below). This navigation works great, but I cannot figure out how ...
1
vote
0answers
13 views

Select menu should display categories and the item's depth

I have a select menu of a custom post type in the header.php: <?php $selectloop = new WP_Query( array( 'post_type' => 'products', 'posts_per_page' => -1 ) ); echo ...
1
vote
0answers
47 views

Create menu / submenu from category subcategory and posts

I have a custom menu made up of pages and categories and I am trying to output the category and subcategories as well as the last 4 posts from each category/ subcategory. In trying to use a walker ...
1
vote
0answers
22 views

Categories as main menu items and subcategories as nested lists

I am new to WordPress and am trying to make my website. Would it be possible to list categories and subcategories as a nested list with links in the main navigation menu. What am i trying to achieve ...
1
vote
0answers
14 views

Navigation doesn't render when wp is hosted

I have created a theme on my local host and it works fine. I am using the walker function in order to get the bootstrap navigation. However when I upload the site on godaddy the navigation doesn't ...
1
vote
0answers
27 views

Get Adjacent post by search query

I want to get previous/next post, but to keep that within the same search query (I keep the searched terms from the previous page via the URL.) Is there any way to do this? It doesn't seem to be in ...
1
vote
0answers
55 views

How do you add a <div> around the second level of a Menu?

I've been searching around online and reading up on walkers but I can't figure out how to do this. Basically I need a <div class="sub-container"> wrapped around the second level of the menu but ...
1
vote
0answers
411 views

How to add swipe action to wordpress pages

I have a news website. I have the main front-page and also a couple of "sub" front pages (sport, social). The other sections works through category.php. I like to add a touch gesture functionality, ...
1
vote
0answers
62 views

Walker_Nav_menu access parent menu name

I extended Walker_Nav_Menu with the code below and I would like to replace [TITLE HERE] with the name of the parent menu... In my menu I only display one depth of the navigation at a time. So I would ...
1
vote
0answers
272 views

Rendering of custom walker menu function not working properly

I have a custom function for my nav walker menu that adds custom php/html to it, which can be seen below. It renders a twitter bootstrap dropdown menu that I would like to put my login form in. ...
1
vote
0answers
443 views

Custom code for WordPress dynamic menu

Without using plugins, how can I create a custom WordPress navigation menu to produce the following code? <div class="bottom_section_full"> <div class="bottom_section_left ...
1
vote
0answers
103 views

Can I use multiple nav_walkers?

I am working on a project and I came to the conclusion that I need to use 3 nav walkers: one for edit and 2 for HTML formatting class MY_Walker_Nav_Menu_Edit extends Walker_Nav_Menu {} // this ...
1
vote
0answers
248 views

Implementing the twentythirteen responsive menu in twentytwelve

I've made plenty of 2012 child-themes in the past as the theme really suits my overall needs, but having it be responsive never was that important. Now however I'm creating a site that really needs a ...
1
vote
0answers
2k views

woocommerce product in multiple categories navigation

I wonder if someone has an answer to this or could point me in the right direction I have a woocommerce product which resides in multiple categories like so /**the product categories ...
1
vote
0answers
73 views

Removing Parent Page URL While Keeping the Navigation Intact

So here is the current format: site.com/parent-page/child-page/ - example 0 Child-page is ranking higher than parent-page, which is not what I want. So, I have a solution. site.com/parent-page/ - ...
1
vote
0answers
972 views

Alternative to wp_get_nav_menu_items?

I have tried out a technique to implement the wp_get_nav_menu_items, however, a child on the level 1 is being nested inappropriately on the menu. Kindly suggest an alternative of how this issue can ...
1
vote
0answers
381 views

Navigation menu not being assigned Theme Location

I am setting my navigation menu up using the following snippet in my functions.php. add_action( 'init', 'add_menus' ); function add_menus() { register_nav_menus( ...
1
vote
0answers
125 views

Losing Nav Active State in Menu

In the following section: http://www.zimmernutrition.com.php53-23.ord1-1.websitetestlink.com/learning-center/ In the sidebar, if you click "Health Articles" and click one of the categories, the ...
1
vote
0answers
390 views

Help with walker for nav

For some reason, this walker won't work when I pass in 'echo ' => 0, it always prints the nav, and never returns the nav as a var. I can't seem to figure out where it's by passing that in ...
1
vote
0answers
87 views

Twenty Eleven theme- have custom landing page, change nav “home” link

Live site. I have a custom landing page on the Twenty Eleven theme. Currently, the "Home" nav link is set to the landing page, but I would like to change it to go to /home when clicked on. How do I ...
0
votes
0answers
11 views

Why does my menu disappear if I set it to something other than '--Select--'?

Trying to style it - so that it has a drop-down toggle button. So I wanted to change the files. But the other menus - that would have child elements - don't play nice with the customizer. I'll ...
0
votes
0answers
11 views

Change name of links in menus automatically when title of page changes

I have created a menu (Appearance -> Menus) and placed desired pages I want to have there as links. I did that for multiple languages, and I also have a few other menus for footer and sidebar. In the ...
0
votes
0answers
12 views

Problem with sub-menu container

I try to add container for of main navigation menu. This is entire functions.php of my custom theme: <?php function gzabrze_menu() { register_nav_menu('glowne',__( 'Menu Główne' )); } ...
0
votes
0answers
86 views

get_adjacent_post - in same term or category not working

I am building a Next and Previous Post navigation for my 'Single post' pages, inside a plugin. What I am trying to do is get the Prev/Next post within the same category of a Custom Post Type. So I ...
0
votes
0answers
16 views

How to Use Default Auto-Generated Menu?

I have a site with a decent number of pages (130+) and it is organized using the Parent functionality of each post. This works well. I'm trying to use a mega menu plugin, but it wants me to select a ...
0
votes
0answers
38 views

Query/load only WooCommerce shop categories into a custom landing page?

I want to reuse the WooCommerce shop-categories in a custom grid landing page, but without the product images, as I am using custom images to make the grid wall. What is the best way to do this? ...
0
votes
0answers
30 views

how to made customize wp_nav_menu walker with search box

how to made customize wp_nav_menu walker with search box. <ul class="main-navigation"> <li class="course"> <!-- <a ...
0
votes
0answers
31 views

Add new nav menu item programmatically

I want to add new nav menu item and in the same time create new page, so my questions are: Is it enough to use wp_update_nav_menu_item() to create new page and new item in existing nav menu? And if ...
0
votes
0answers
31 views

Navgation menu with submenu

My menu has to be two rows. First row has to be parrent menu items and second row has to show only selected parrent menu's children. menu structure: 1. parrent 1 a. children 1 b. children 2 ...
0
votes
0answers
70 views

wp_nav_array() With A Hamburger Menu

I don't understand how the wp_nav_array works even after reading the codex thoroughly and I'm having issues with adding a menu. My html + css looks like this: <!-- Header --> <header ...
0
votes
0answers
13 views

Can Outside Navigation Be Done In Wordpress?

I really like this guys site, and I'm very curious if this type of outside navigation can be done in wordpress. Like how it has transition animations from page to page, it never really loads a new ...
0
votes
0answers
37 views

How to add custom pages to menu programmatically?

So I need to add some pages when it created to the menu within plugin. Menu id is 125. Pages have taxonomy gp_hubs. $category = wp_insert_term($name, 'gp_hubs'); foreach ($sub_categories as ...
0
votes
0answers
174 views

Extending Nav walker with Yamm menu

Here is my navigation code where only service tab should have col wise layout of menu. I am using bootstrap nav walker menu which is working fine for other nav except services menu which should have ...
0
votes
0answers
37 views

Include in post navigation if field is checked

I need to display certain posts in the previous and next buttons using the_post_navigation() function. I want to to exclude any post with a checkbox that is not ticked. Another twist is that the ...
0
votes
0answers
110 views

wp-nav menu with custom walker , how to remove a tag if it has any submenu

i want to do wp_nav_menu custom walker ? can i convert wordpress menu this html if it has any submenu remove a tag from list item for example below galleries item I tried to leave empty link . but ...
0
votes
0answers
36 views

Getting Menu Items Parameters in Javascript Loop

I'm using the Menu Image Plugin - https://wordpress.org/plugins/menu-image/ It adds a image to the menu I need to extract or output the menu items ie Name, Menu-Url, Menu-image into javascript loop, ...
0
votes
0answers
23 views

display menu depending on selection on homepage

Like I wrote in the topic On my homepage there are two links: business and consumer depending which link I choose I want to display a certain get_template_part (menu) So If you click on "business" ...
0
votes
0answers
17 views

Customize navigation menu in the Twenty Fifteen theme

Is it possible to change the behavior of the navigation menu in the Twenty Fifteen theme so when a user clicks a menu item to open a submenu all the other already opened submenus are closed? I'm ...
0
votes
0answers
29 views

Custom nav menu current item custom link problem

Because I want to add <span class="dashicons [class]"></span> inside each link of my menu I needed to create a custom made nav menu. I did this by the code below which works great, but ...
0
votes
0answers
77 views

How can I add a custom list item to the start of sub menus?

I'm trying to change the output of the Wordpress navigation through a custom nav walker, but I have a some issues I'm not managing to work out. If an item has children I want to add two list item ...
0
votes
0answers
19 views

Reproduce sub-navigation drop down

We have a navigation bar that when you hover over it there is a drop down on 3 out of the 5 menu items; I'm trying to add the other two. I have added what looks like the right code but I can't figure ...
0
votes
0answers
80 views

Connect custom rewrite rules and query variables to wordpress navigation

Setup for getting content My setup for getting custom content in Network of sites where many sites use the same custom data on the side of worpress generated content. Custom classes to get custom ...
0
votes
0answers
70 views

Apply Twenty Fifteen Menu Functionality to a Secondary Menu

I'd like to apply the same dynamic, category-to-subcategory dropdown menu that's used in WordPress's Twenty Fifteen theme to a new secondary menu that I've registered in a different WordPress theme ...
0
votes
0answers
23 views

How to separate a nav with child levels into full length menus?

I am using the wordpress underscores theme taken from https://github.com/automattic/_s I have tried to use a custom walker but am getting confused with it. All I want to do is create a list of links ...
0
votes
0answers
99 views

Navigation (wp_nav_menu) refuses to nest within parent element

I have a shortcode that (among other things) echoes out a menu using wp_nav_menu like so if ( ! function_exists( 'foundationPress_main_nav' ) ) { function foundationPress_main_nav() { ...
0
votes
0answers
17 views

How to set page to be a parent of a custom post?

This question is regarding the navigation menu (wp_nav_menu). The nav menu has two classes that depicts the current page: .current_page_parent, .current_page_item. This works great for both Blog and ...
0
votes
0answers
64 views

How to exclude categories as well as their respective thumbnails from custom prev-next navigation?

I added the following to my functions.php file: function wyrta_post_nav() { global $post; $exclude_cats = "8"; // Don't print empty markup if there's nowhere to navigate. ...