The tag has no usage guidance.

learn more… | top users | synonyms

1
vote
1answer
176 views

Get admin menu link

Is there any way I can get the menu link for admins? http://codex.wordpress.org/Function_Reference/edit_post_link Similarly to the edit_post_link() that returns the edit link for loggedin Admins I ...
1
vote
1answer
493 views

Breadcrumbs - Exclude Child Categories

I am using this code in my functions.php file to display breadcrumbs on my web site.. function the_breadcrumb() { if (!is_home()) { echo '<a href="'; ...
1
vote
3answers
4k views

Search box as a menu item in the nav menu output by wp_nav_menu?

I am using the Twenty Twelve theme, and the following is the code it uses to register and display the menu. In functions.php: function twentytwelve_setup() { ... // This theme uses ...
1
vote
1answer
815 views

Nav menu of all posts in a custom post type

How can I create a nav like those generated by wp_nav_menu which lists all the posts in a specific custom post type? For example, I have CPT "section1" and I'd like to have the menu list all posts ...
1
vote
1answer
625 views

Is there a wordpress plugin enabling an autocomplete search box, then jump to page?

I have very little experience with WordPress. I am exploring it as a potential solution for our needs. I would like to implement an autocomplete search box (a bit like jQuery's) where users could ...
1
vote
2answers
847 views

Open subcategories in submenu on click in primary menu

I am figuring out a way if we can manage the menu in such a way that when I click on the menu item in the first menu, the sub categories or links that i choose should be displayed in the secondary ...
1
vote
1answer
613 views

Arguments ignored/markup changed in wp_nav_menu if no menu is selected

I've created a menu using wp_nav_menu in my theme using the most simple setup as possible: wp_nav_menu( array( 'theme_location' => 'my_theme_top_menu') ); And in my functions.php: ...
1
vote
1answer
772 views

posts_nav_link on single.php

The situation...I use 3 categories. One of them is called 'News'. This page shows on the left the latest post in the category 'News' and on the left it shows the 10 most recent posts from this same ...
1
vote
1answer
116 views

I need ideas for a complicated menu

I have a slightly complicated menu to code from PSD document and integrate into wordpress. this is how it looks: (link in the comment bellow) The result of my work is this: ...
1
vote
1answer
621 views

Replacing WordPress menu functionality with a plugin

I asked this earlier on StackOverflow.com before realizing there was a StackExchange specifically for WordPress. Here is the link to the old question (for moderator deletion): ...
1
vote
1answer
3k views

Find out if a page has no parent

Hay, have a basic menu looking like this Item 1 Item 1.1 Item 1.1.1 Item 1.1.2 Item 1.2 Item 2 Item 2.1 I'm outputting this as a list using WordPresses "wp_list_pages()" ...
1
vote
1answer
264 views

How to get back to same page of post-list - after updating a post

I'm going back and reworking categories and tags on some older posts. So I'm going back in time, to say for example page 4 of my posts. I know there are search filters, which might help, but let's ...
1
vote
3answers
333 views

How to remove some specfic navigation links only from selected page/pages?

For example: In the client site I have 5 page 1) Home 2) product 3) Services 4) Contact us 5) Blog Only from the blog page I want to remove 2) product and 3) Services but not from other pages. Is ...
1
vote
1answer
22 views

Programmatically (PHP) get the nr. of items in the primary navigation menu

I need to get the nr. of items in the primary navigation menu. I need this to determine the width in percentage of each list item. So I also need to change/add to the css width attribute of the list ...
1
vote
3answers
58 views

Benefits of using Nav Walker?

Are there any benefits to using a nav walker class over iterating through wp_get_nav_menu_items()? Nav walkers seem very clunky to me and iterating over an array feels easier and more re-usable but ...
1
vote
2answers
176 views

Is it possible to nest get_previous_post()?

I am trying to retrieve the previous and the 2nd previous posts' featured image as well as the two next posts' featured image. <div id="cooler-nav" class="navigation row"> <?php $prevPost = ...
1
vote
1answer
369 views

wp_nav_menu add some element to container

I've tried to hook wp_nav_menu_args to get an ID for the nav menu. I tried to add an element using javascript to container menu. But I never get the ID for the menu. How can I add an element to a nav ...
1
vote
2answers
615 views

Menu styling for last menu item

okay so I'm using the following code to get my links... <?php wp_nav_menu( array('theme_location' => 'primary', 'container' => '', 'menu_class' => 'mainnav') ); ?> This is my CSS for ...
1
vote
1answer
308 views

Can't include Language switch in Nav Menu

I am trying to add to my menu bar some language elements. I'm using the qTranslate plugin and I would like to add the language switch to the menu bar. My them is calling in the header.php <?php ...
1
vote
1answer
307 views

Setting a Default 'Theme Location' When Creating a Menu

I'm trying to create a theme which when activated, sets up a primary navigation, adds the homepage to it and then enables it in the correct location. Here's what I've got so far: ...
1
vote
1answer
262 views

Home Custom Menu Link not Working

I'm trying to have the menu link per default when using my custom menus, and in my functions.php document I have this: function home_page_menu_args( $args ) { $args['show_home'] = true; ...
1
vote
2answers
45 views

Menu Limitations

I am coming here for advice mainly, because I am stuck on what to do next. Within my latest project, I am using Wordpress at the backbone, as a fully fledged CMS system. I have styled every single ...
1
vote
1answer
760 views

Primary navigation menu & footer not showing in category / tag page

I tried to find a solution for primary navigation not showing in some pages, ie. archive.php. I found one from here but it's still giving me notices. I'm using Reverie Theme in WordPress ...
1
vote
1answer
2k views

How to change theme header to support multiple nav menus?

I'll try to be brief.... I have a theme that only supports one navigation menu. At this point I'd like to add 2 or 3 more menus. I have successfully registered my menus in functions.php with ...
1
vote
2answers
146 views

Is it possible to create a form post wordpress custom navigation link?

I work with a church that has a donate button on their site. The button uses a form post to connect with their simple checkout item and they want a button on the navigation to link to the donation ...
1
vote
1answer
1k views

how can i add css class on current page in wordpress wp_nav_menu

how can i add css class on current page in wordpress wp_nav_menu For Example I Want To Use It In Wordpress wp_nav_menu <li><a href="index.php?id=index&colortheme=green" class="selected" ...
1
vote
1answer
1k views

How to rewrite the output of wordpress nav menu?

I have been trying to figure this out for a while. I need to overwrite the default output of the wordpress nav system. Right now it is like: <ul id="main-nav"> <li ...
1
vote
2answers
703 views

Reordering Buddy Press profile navigation [closed]

I am using this code to reorder the positions of the menu items for BuddyPress profile. I am using the xprofile (not sure if that makes a difference). Here is the code that I am trying to use: ...
1
vote
1answer
32 views

Using a page as home, how do I prevent nav from setting both home and page links active?

Let's say we have a site with four items in a managed menu, corresponding to pages: Home | Foo | Bar | Baz The "Home" item is a custom link pointing at "/". And we want the "Bar" content shown ...
1
vote
1answer
2k views

Menu with parents, children and or siblings pages display

Here you see the parent menu selected in the horizontal navbar. I already have that working. I need a sidebar like they have with the same parent indicated plus children when they exist . At the ...
1
vote
2answers
2k views

Separator for custom nav menu

I creating a custom footer navigation in wordpress. I looked all over the wordpress documentation and still haven't found anything. So, what I'm trying to do is add an "|" in the navigation like this: ...
1
vote
1answer
295 views

wp_nav_menu including Skype URL

If I try to add a skype username as the URL for a wp_nav_menu item, the item is saved but the URL is not. The username URL is in the following format: skype:example?call Any thoughts on add skype: ...
1
vote
2answers
5k views

How to style current page menu item when using a walker

I have designed a custom menu and would like to be able to style the individual li dependent whether it is the current page or not? I believe this is normally pretty straightforward using a class such ...
1
vote
1answer
763 views

Bar separated navigation by extending Walker_Page

This question follows on from this one: Bar separated navigation by extending Walker_Nav_Menu I'm trying to do the same thing but this time I'm extending Walker_Page instead. The issue I'm having ...
1
vote
2answers
770 views

Inserting specific images inside navigation menu

I have a navigation menu that I hard-coded into a recent theme that I developed. Now, it would be a lot easier (and more customizable) to just build this navigation menu using the intrinsic ...
1
vote
1answer
1k views

wordpress wp_list_pages help

In my wordpress enviroment, I have a number of pages, and I also have a custom post type called casestudy. I have setup a page-clients.php that has some of it's own content on, I then use the ...
1
vote
1answer
61 views

Blank Pages with # URL & Google

I'm using some blank pages that have a title only and a URL set to '#' for my navigation. (So, that the item appears in the dropdown menu, but when it's clicked a page doesn't open). Do I need to ...
1
vote
1answer
1k views

How do I add an indicator to my .menu-item if it contains a .sub-menu?

If your common with the code that wp_nav_menu function generates. You should know what im asking for. I need to add an indicator like a plus sign or an arrow to indicate that this menu-item has a ...
1
vote
1answer
156 views

Navigational drop-down lists in Wordpress?

I'm trying to simplify a set of links by placing them in a drop down list (form style) with a submit button that will take users to the page in question. Ideally, I'd like it to behave like the ...
1
vote
1answer
958 views

Checkboxes in the category list?

I want the category list to have checkboxes so that the visitor can navigate much more easily, just like the way Amazon does it. Compare: left is my current layout, right is what I want to achieve ...
1
vote
1answer
566 views

Displaying Subpages while on Parent page?

I would like to create a navigation menu where I will be displaying two level pages. To illustrate that: Parent 1 Parent 2 Parent 3 (current) Child 1 Child 2 Child 3 Parent 4 So I would like ...
1
vote
3answers
935 views

Showing up my custom post type in primary navigation

I have 4 custom post types set up in my blog and video is one of them. I want the video archives page (archives-video.php) to shop up in my primary navigation. how do I do this without writing a ...
1
vote
1answer
787 views

Select first child/subpage item in wp list pages

This question is following on from a question I posted previously, Ok, the html code that I'm trying to output is the same as the previous question - here: The current outputted html is this: ...
1
vote
2answers
2k views

Break apart wp_list_pages in order to customise it

I'm trying to 'break apart', (think explode is the correct terminology), wp_list_pages in order to add some definition list code into it, (dl, dt, dd). Here is the html code that I'm trying to ...
1
vote
1answer
726 views

Fallback_cb is messing around with containers

I have the following code in place for a custom menu area: $wp_nav_header = array( 'container' => '', 'menu_class' => 'sf-menu', 'fallback_cb' => 'wp_page_menu', ...
1
vote
2answers
248 views

looking for navigation plugin (accordion) [closed]

does anyone know if there's a jQuery-navigation plugin with accordion animation which can be auto-applied to the wordpress default navigation? it should also support marking the current item (+ also ...
1
vote
1answer
112 views

Post Navigation

I have a widget area on my posts category pages and am wondering if there is a way to dynamically add a link to the first post as well as the current post of the category. I think the first post can ...
1
vote
1answer
1k views

Paging doesn't work?

I have my own custom post type, and 15 items there. This code shows all the items: <?php $loop = new WP_Query( array( 'post_type' => 'my_post_type', 'posts_per_page' => 15 ) ); while ( ...
1
vote
1answer
1k views

Only show top-level links in site navigation

This seems like it should be easy to do, but I've not been able to find or work out a solution. I'm using the Starkers theme and Wordpress 3.0.4, and my site auto-generates its navigation as per ...
1
vote
2answers
239 views

Current navigation highlight for a menu that may be modified by the user?

I'm using the following to list my pages: <ul id="nav"> <?php wp_list_pages('title_li='); ?> </ul> is there a way of highlight the link of the page of the current in the ...