The tag has no wiki summary.

learn more… | top users | synonyms

-1
votes
1answer
35 views

Different coloured navigation links in Twenty Eleven themes

I'm working on a website for a friend with small changes. She's running Twenty Eleven theme an she wants to make each link's bottom border (that I'll be putting in soon) a different colour. However ...
1
vote
0answers
369 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 ...
0
votes
1answer
135 views

Adding different classes to anchor in navigation menu

Is this possible? I want to add different classes to the anchors, so not the same on all anchors. How can I do this? PS: I am using this: function add_nav_class($output) { $output= ...
0
votes
2answers
50 views

Get the amount of posts on a given page

When you go to something like: site.com/?cat=2&page=2 you might see 3 posts, the page before might have 5 posts. I am looking for a way to count the posts on a given page. so if I am on page 2, ...
0
votes
0answers
32 views

wants to show category with navigation

I have 50 category and i wants to show 10 category on ist page and next 10 on next page and next 10 on next page and so on with navigation. I am using this code. But no any navigation creating. but ...
0
votes
1answer
852 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
0answers
43 views

Custom post type archive as home page: getting navigation to recognize the modified query

I have modified the query of the home page to call a custom post archive by the method explained here. What I can't figure out is how to get the navigation to recognize this new query and add the ...
1
vote
2answers
31 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
0answers
61 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/ - ...
0
votes
0answers
111 views

WordPress Nav Menu Hierarchy

If I asked you "How to use nav menu item so that I don't have a blank page", you would say use a custom menu link with a '#' as the title, correct? When I do this the child pages then appear as the ...
0
votes
0answers
23 views

Help with Wordpress Walker Function [duplicate]

I need some help customizing a walker function. I don't fully undrestand it, but it's helped me get half of what I need. class themeslug_walker_nav_menu extends Walker_Nav_Menu { // add ...
0
votes
1answer
195 views

Image menu on responsive WordPress

1) Why WordPress only use based on "text" menus (navigation) only? Maybe the answer is "it is for SEO and mobile responsive WordPress". Am I correct? any other opinions? 2) What if I create "image ...
0
votes
1answer
48 views

Modifying navigation menu classes with a Walker

I did a class that extends Walker_Nav_Menu to modify the default classes of my < li >s but also to modify the default classes of my < ul >s. It seems that only the sub-menus are affected by the ...
0
votes
1answer
50 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
2answers
42 views

Add Text Domain To Post Navigation

I'm using previous_post_link('%link','Previous Post'); and next_post_link('%link','Next Post'); for post navigation but I want to add text domain to that similar to _e('Next Post' , 'ft'); How ...
0
votes
1answer
132 views

how to automatically generate hierarchical menus from hierarchy of pages?

I have a photo site, and I take care to crested a logical nested hierarchy of pages. e.g. for photos I just posted, I created the following pages: site.com/2013/ site.com/2013/colorado/ ...
3
votes
1answer
104 views

How to add a section to the menus configuration, offering hard coded items?

So, let me explain what I'm actually trying to do, maybe there's a better way to achieve it. I'm working on a theme, and I'd like the user to be able to easily position "special" items in the menu ...
1
vote
2answers
76 views

How can I add text to a single nav menu item?

I'm working on a theme that requires the end-user to specify the current performance season using a custom admin panel I've created, ie. "2013/2014", "2014/2015" etc., which I can retrieve using ...
0
votes
2answers
687 views

How Do I Add Next and Previous Links On Single Custom Post Type Only?

I'd like to add next and previous post links on single posts which use a custom post type. Prefer links only work for the posts assigned to the custom post type. How would i add it to this: function ...
0
votes
1answer
28 views

Undefined offset: 2

I'm using this function I found from this answer here about showing prev/next navigation for a current page <?php $pagelist = ...
-2
votes
1answer
81 views

How can I structure my pseudo footer nav code with wordpress codex code?

I'm building my first fully custom wordpress theme, and I'm starting to pull hairs out while trying to write the dynamic footer code! I've tried a bunch of codex this and codex that but can't seem to ...
1
vote
2answers
170 views

Restrict post navigation to current sub menu

This is what I'm using to output my post navigation: <?php if (is_single() ) { ?> <nav class="post-navigation"> <h1 class="visuallyhidden">Post Navigation</h1> ...
0
votes
0answers
110 views

Custom Menu Widgets Disappearing on Category Pages

This question is related to the following thread. wp_nav_menu not appearing for a couple pages The answer to this question works perfectly for my primary nav, however my custom menu widgets in my ...
0
votes
1answer
440 views

How to retain responsive navigation menu in twentyeleven child theme

I use TwentyTwelve as the parent theme for most of my site development. However, when i change any styling or positioning associated with the menu, the responsive nature of menu does not come into ...
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
3answers
407 views

Does is_child() exist in wp 3.5.1?

I'm trying to figure out how to get to a is_child() equivalent; I'd like to be able to target the parent page and it's children. How can this be achieved? My pseudo-code is... if ...
0
votes
1answer
2k views

Using FlexNav with WordPress

Has anyone managed to get the FlexNav plugin - http://jasonweaver.name/lab/flexiblenavigation/ - working with WordPress? I've got an HTML version of the site working fine, but I'm running into ...
0
votes
1answer
166 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
1k views

Add custom attributes to menu items without plugin

I'm trying to figure out the best way to add custom menu attributes without using a plugin. I have a site using a custom theme and need to make sure this is setup at theme activation vs needing to ...
0
votes
1answer
56 views

changing the labels inside appearance -> menus for some for the fields

So I've create a custom walker for nav menu (i am talking about the menus located at: appearance -> menu -> add a new menu. I now use the following for several things i need: URL Title Attribute CSS ...
0
votes
1answer
52 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
365 views

How does the Twenty Twelve Navigation Bar work?

I have been pouring through the code trying to find out how the navigation menu is actually built. In my header I see: < nav id="site-navigation" class="main-navigation" role="navigation"> ...
1
vote
0answers
303 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 ...
0
votes
0answers
107 views

Multiple select box navigation

I've spent several days trying to sort this out but I'm not getting anywhere... :( I have a page that has event result tables. I have each result table on its own page. I want the users to be able to ...
2
votes
1answer
563 views

Test if page is child and has children, if so echo child pages also on grandchild pages

I am trying to show a sub-menu of child-pages only on level 2 pages (who have a parent) and if they have children. I am using the code below (made from several snippets I found), it works fine on ...
0
votes
1answer
707 views

Add <span> within the <li> output of <? wp_nav_menu() ?>

Im currently printing out: <?php wp_nav_menu( array( 'theme_location' => 'primary' ) ); ?> Which outputs: <div class="menu"> <ul> <li ...
0
votes
2answers
148 views

Add ID to target navigation link

I am using the following code for a navigation bar on a WordPress website: <?php wp_list_pages("title_li="); ?> Which currently spits out some links that look like: <a ...
1
vote
0answers
118 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( ...
0
votes
1answer
63 views

navigation link based on custom field

I'm looking for a method to order posts by a custom field so that the navigational links on a single post template would point to the next or previous post in the sequence defined by a number in a ...
-1
votes
1answer
89 views

Pagination for Custom Post Type with Multiple Types

The first page shows the first results however, mypages/page2 leads to a 404 error. The following code is inside archives-mypages.php <?php $temp = $wp_query; $wp_query=null; $args = array( ...
0
votes
1answer
112 views

next_posts_link returns same content of 1st page

Pagination seems to work fine... I have 21 posts... and it will go to 3 pages... however... every page shows 10 posts and the same content as the first page.... <?php $temp = $wp_query; $wp_query= ...
2
votes
1answer
338 views

current-menu-item not working with custom post type

I'm a wordpress newbie and I have annoying problem. I have a few custom post types (capability_type=post). Two of them i created with "Custom Post Types" plugin and when i put its categories in ...
0
votes
1answer
95 views

Custom Post Type Navigation on Custom Field

I'm working on a Custom Post Type sorted on a Custom Field. No problem when I list out the posts. But when I go to the single post page for one of these, I want the Prev and Next navigation links to ...
3
votes
1answer
703 views

Wordpress Export Import Site Navigation Menu

When I do an export and import the menus get transferred but I have to set the Site Navigation Menu manualy. Obviously it's only a small detail but can I ask is this a bug or expected behaviour and is ...
1
vote
2answers
124 views

Two Search pages, One search form

I have a search form that I want to place in multiple pages (it will be in different header types) I do this by using the 'get search form' function. On my Search form I have radio sections listing ...
0
votes
0answers
88 views

next_post_link() not working properly

I am using next_post_link() and previous_post_link() in single-custom.php to browse through post-type "custom". <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div ...
0
votes
1answer
107 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
115 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
0answers
27 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 ...
0
votes
1answer
89 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 ...