The tag has no wiki summary.

learn more… | top users | synonyms

3
votes
1answer
335 views

Show only 2nd level of navigation depending on active navigation

For example, suppose a menu like so: Parent 1 Child A Child B Parent 1 Child C Child D Child E Parent 2 Child F In a certain part of my template, I want something to show depending on ...
2
votes
1answer
56 views

Adding Post Counts to Menu (Nav) Programmatically?

I'm fairly stumped on this. Without getting too query-heavy, I was wondering what path one might take to produce a menu that links to a category of posts, and displays in parenthesis how many new ...
2
votes
1answer
162 views

How to move parent li to end of child ul

I'm working on translating a site from HTML/CSS to Wordpress, and I've come across an issue. In the spirit of keeping the site fully customizable from the dashboard, I've been using Wordpress' default ...
2
votes
1answer
233 views

Two Navigation Menus - secondary nav is including main nav

Two Navigation Menus in Themes Produce the same menus? reference the subject on page link above. i created two navs, yet the secondary nav includes all pages. the main nav is fine, but the secondary ...
1
vote
1answer
87 views

How to get correct URLs in network wide menu (Multisite)?

I'm using this function to switch to my main website's navigation and display it on all sub sites in my multisite network. Ideally the links should have the following format: ...
1
vote
1answer
123 views

Using characters to separate menus in navigation bar

I’m attempting to modify my blog's navigation menu (http://reasonandfolly.com/) to replicate what is here: http://chimpchomp.us/ Two pieces represent a challenge: 1. The separators 2. The line on ...
1
vote
1answer
243 views

Previous/next link to post in category, NOT tag?

On a single post page I have the following code after my loop: <?php previous_post_link('&laquo; %link') ?> &#124; <?php next_post_link(' %link &raquo;') ?> For some ...
0
votes
1answer
8 views

add custom classes to anchore in wp_nav_menu

i wana add custom class to anchores in wp_nav_menu outputs. default for example is : <li id="menu-item" class="menu-item menu-item-type-custom"> <a ...
0
votes
1answer
20 views

get_adjacent_post_link excluded_terms ignored

I call the function ´get_adjacent_post_link´ using the argument ´$excluded_terms´. But this argument is ignored. This is how I call the function. get_adjacent_post_link( '%link', '<span ...
0
votes
1answer
29 views

How to remove dropdown from wp_nav_menu

I dont want to have dropdown (select - options) in my wordpress menu, even in mobile or lower width devices. I know I can use css to hide it, but I want to remove it at all. I googled for an hour and ...
0
votes
1answer
9 views

Highlighting Main Navigation Menu With Two or More Class Matches

I believe this doesn't happen very often. I am working on a project in which a child page can show up under several different parent pages. The page actually belongs to just one parent, but in the ...
0
votes
1answer
33 views

nav_menu: how to force a subpage switching on the parent menu

I've been using the native wp_nav_menu to output my navigational elements. I have also created a subpage that is nested under one of my menu, but when I hit that URL the default custom walker clearly ...
0
votes
1answer
70 views

Customize Walker_nav_menu to show posts if item is category

I would like to customize the nav menu walker so that when it encounters a category it automatically makes the 5 most resent posts children of the menu item. Is there a way to dynamically add items ...
0
votes
1answer
117 views

Remove nav menu item by script

I want to create my custom nav menu using a script in a wp plugin. I'm almost there using this tutorial. All I need is the option to delete menu entries. something like ...
0
votes
1answer
202 views

How to add menu support to a theme?

I tried few tutorials. All i think is i should use register_nav_menus() and then add the menu in header.php Here is the code i tried in functions.php from this help site itself function ...
0
votes
1answer
187 views

Creating a navigation menu of all posts of a custom post type and their children posts?

I have a drop down menu that displays a link (the permalink) to all of the posts of a custom post type (county) and would simply like to display their children too this is the code I have so far but ...
0
votes
1answer
51 views

How to accomplish a child page navigation?

I'm not finding any info on this, so I'm probably wording it incorrectly in my search. So I'm hoping someone can point me in the right direction. I have 50 pieces of content that'll be going on my ...
0
votes
1answer
80 views

How to output the menue structured for tabbed navigation?

I've got a design for my webpage that uses tabbed navigation with two levels. In this example 'TAB2' tab is selected and it's children item are desplayed below of it. ˬ ...
0
votes
1answer
34 views

Replace Menu Item with Logged in username

I have a topnav menu item that current says "My Account", I would like to change it so that it functions as: Welcome [Logged in Username] -> My Account -> Logout
0
votes
1answer
79 views

Seeting Active Nav for Bootstrap in WordPress

OK , I have a Custom Theme generated by Bootstrap. Currently I just added a Navbar (navigation to the theme and I am having trouble on setting ACTIVE navbar in each active page.(by adding active class ...
0
votes
1answer
166 views

How do I show a different secondary navigation menu for each section of my website?

My site is organised into three sections, like this: Reiki Basics (page ID 499) – page 1.1 – page 1.2 – page 1.3 Practice & Study (page ID 501) – page 2.1 – etc Courses (page ID 471) – ...
0
votes
1answer
64 views

Using Different nav_menu_css_class for different nav_walkers

On my theme I have to different nav_walkers, I'd like to be able to call two different nav_menu_css_class-es for each menu alas, they appear to apply globally. Here's what I have function ...
0
votes
1answer
141 views

Update nav menu item position programmatically

I've tried adding a new programmatically on wordpress with the function: wp_update_nav_menu_item($menu, 0, array('menu-item-title' => $title, 'menu-item-object' => 'page', ...
0
votes
1answer
351 views

Get all first images of posts in same category

I am trying to build a list of thumbnail images linked to their associated single content pages within the same category. So, when I am in the category of 'x' the list returns all image attachments ...
0
votes
1answer
25 views

Navigational error

Basically I have an image for a header and I changed the link behind that to go to the main website and was planning on making a news option in the menu to link to the blogs main page, after changing ...
0
votes
1answer
187 views

Post in multiple categories do not include in previous / next post if one category in excluded

I have read the following post which appears to solve my problem but doesn't... excluded_categories parameter in next_post_link() behaving unexpectedly I have posts in say 3 categories but if they ...
0
votes
1answer
1k views

How do I implement jPanelMenu?

I have serious problems trying to implement jPanelMenu to the theme I'm building. The theme is nearly finished, I'm just trying to figure out this menu and I can finally start using it. Anyways, if ...
0
votes
1answer
83 views

Walker for menus

I want to modify all of my <li>'s classes and ids, but the function wp_nav_menu() does not let me do so, so I think I need to use a walker. I am pretty new in OO, so using an object is not ...
0
votes
1answer
1k views

Sticky menu for WP custom menubars

This seems simple, except that I am not able to figure it out. In a wordpress theme, how can I make a custom menubar below the header image stick at the top after scrolling down the page? Example ...
0
votes
1answer
202 views

Bookmark anchor link to load another page first before completing?

Question: is there a way for a link to an anchor bookmark to arrive at its destination by loading another page first? I'm developing a vertical-scrolling style website where the home page displays ...
0
votes
1answer
56 views

wp_nav_menu: indicate by id page grandparents

I have an web site with top-header menu and sidebar menu. Situation, like: header menu: books music movies (if we are now under music) sidemenu: blues jazz dance (if we are now under "Jazz") ...
0
votes
1answer
109 views

Tabbed navigation in widget backend

I have just created a widget and i am trying to implement a tabbed navigation in the wp backend but it just seems more difficult than writing all the php code! The categories metabox is an example of ...
0
votes
1answer
126 views

individual images as navigation design TwentyTen

I can't figure out a solution for changing the black bar in Twenty Ten to individual background images behind each link. Using an image I created in Photoshop I have tried changing a few things in the ...
0
votes
1answer
136 views

New posts label category with “new”

I have 3 different custom post types, with each type forming my main navigation. When I post something new under one of them, I want that category in the nav to be marked with a "new" label for a ...
0
votes
1answer
32 views

Wordpress Navigation

I have my html code for menu as follows: <div class="menu"> <ul> <li><a href="index.php" >Home</a></li> <li><a href="aboutus.php" ...
0
votes
1answer
154 views

Navigation link to specific user page

I asked this question and got a great reply - Associate Page with User - so I can now associate a post with a specific user as required. What I want to do is include in the main site navigation a ...
0
votes
1answer
512 views

Using dividers in menu navigation - where to add code?

I've identified two methods of separating pages in nav menu on my blog (http://reasonandfolly.com) but cannot figure out what php or css file needs to be modified to achieve the result and will admit ...
0
votes
1answer
89 views

Nav Menu Display

Hi I'm wanting to create a custom navigation menu that will require creating 2 div containers to hold the SUB-MENU set. In other words I want to do this: <div id="access"> <div ...
0
votes
1answer
107 views

Typing local Wordpress URL works, but clicking the same link does not

Wordpress is installed locally on WAMP (win 7 x64) and the front page of my site loads fine when I type http://lc.loc. However when I click the link to this URL on the loaded page, I am taken to a DNS ...
0
votes
0answers
46 views

Query a range of pages by menu_order

I'm trying to figure out how to do the following type of query: I want to return up to 12 posts (0 thru 11) by page/menu_order. If there are more than 12 posts, but only 5 pages have an order assigned ...
0
votes
0answers
40 views

Creating a custom menu with icon fonts

I want to create a custom menu with icon font markup. So I may need to have my list item have e.g. this: <i class="gen-enclosed foundicon-left-arrow"></i> contained inside anchor - or ...
0
votes
0answers
229 views

Remove <ul> from wp_nav_menu() wordpress

I am using the theme Twenty Thirteen and am using wp_nav_menu() to display menu items. I need to remove the container <div> and <ul> from wp_nav_menu(). I tried this: wp_nav_menu( array( ...
0
votes
0answers
163 views

wp_get_nav_menu_items() returns an empty array under tags archive

I have three nav menus and for some reason under tags archive wp_get_nav_menu_items('MenuName') returns an empty array. Frontpage, posts, pages are OK, but when you go into tags archive, no items ...
0
votes
0answers
419 views

wp_nav_menu : Adding a filter to add class to a, anchor element

I want to add a custom class to the <a class="custom"> element that is outputted from wp_nav_menu(). Is it possible to do this? The reason if you're curious: I don't want to use li.menu-item a ...
0
votes
0answers
26 views

Template not properly being applied to page (no side menu)

I'm having a bit of trouble getting a particular side navigation menu applied to my sub-pages. The main page uses a specific template for the side navigation and the navigation bar displays perfectly. ...
0
votes
0answers
175 views

displaying child pages in columns when on a parent page

I would like to display sub pages in columns. Some parent pages have a lot of sub pages and the scroll is very long. I am currently using the below code to display sub pages. ...
0
votes
0answers
126 views

Adding font icons to a subnav with wp-list-pages

I am using the Font Awesome Menus plugin (http://wordpress.org/plugins/font-awesome-menus/) to show font icons next to each menu item by adding the icon name to the CSS class input. I would really ...
0
votes
0answers
48 views

How to add a heading under sub-menu by using Nav_Menu_Walkers

I have customised WordPress wp_nav_menu by using Nav_Menu_Walkers and currently achieve the following format: <a href="#">Menu Parent</a> <div class="sub-menu"> <ul ...
0
votes
0answers
55 views

How do I paginate posts page with $wpdb?

I am using this to get the posts: (...) if ( empty( $categories_defined) ) { $posts = get_posts($args); } else { global $wpdb; $posts = $wpdb->get_results( $wpdb->prepare( "SELECT * ...
0
votes
0answers
28 views

Outputting Page Content in Two Places

I am working on a site for a client that is going to be structured very similarly to a store (though without the e-commerce capabilities). I am getting a bit hung up on how to output page content in ...