The tag has no wiki summary.

learn more… | top users | synonyms

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
225 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
52 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
89 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
44 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
203 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
123 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
94 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
1k 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
36 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
99 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
186 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
1answer
570 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
542 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 [closed]

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
208 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
2k 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
62 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
61 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
437 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
424 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 ...
3
votes
1answer
907 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
1k 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
233 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
165 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
79 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
102 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
132 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
432 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
107 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
1k 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
134 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
1answer
113 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
130 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
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 ...
0
votes
1answer
146 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
48 views

New Page Position

I am building a wordpress theme for personal use. I am facing a challenge for the first time and I really don't know how to achieve what I want. The website's header structure is: FIRST LINE: logo / ...
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" ...
2
votes
2answers
798 views

How to set limit only on top levels of wp_nav_menu?

How can I set a limit to the top level menu items in wp_nav_menu? Example: I have this menu in my admin dashboard: I would like to count ONLY the top level items and display a limited number of ...
2
votes
1answer
430 views

Nav Walker current menu item not displaying

I'm building a theme on top of a starter theme (wp-bootstrap) and am having trouble getting the Nav Walker to show the current menu item. current-menu-item is not there when I use a web inspector on ...
0
votes
1answer
105 views

Using _s theme, menu changes do not affect header menu

I'm using the _s theme and seeing the header menu point to 'Home' and 'Sample page'. in functions.php, we have register_nav_menus( array( 'primary' => __( 'Primary Menu', 'mytheme' ), ...
0
votes
1answer
400 views

Custom post type navigation - 404 on page 2

I have a custom post type portfolio and now I'm trying to enable navigation for the template where 10 portfolio items are shown. I'm using the following code to query the posts: if ( ...
0
votes
1answer
61 views

Possible to hide Page if no posts from a CPT?

I was thinking this would be an easy solution to accomplish, but I'm stuck since Main Pages in the Front-End are arrayed automatically. Basically I created individual pages to display specific Custom ...
0
votes
1answer
48 views

Customizing a permalink

Good Day All I have a featured slider on the home page that can call a category from which it gets its featured content. Now, for each featured slider, I made a post with category 'featured'. Now the ...
0
votes
1answer
515 views

Costum walker with sub menu item count

I have a menu like: -Item1 --Sub1 --Sub2 --Sub3 --Sub4 --Sub5 --Sub6 -Item2 -Item3 and want to do some costum stuff after x subitems, so I have to determine when x is reached. I tried to define a ...
0
votes
1answer
159 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
1k views

Dynamically changing navigation links (next and previous) via AJAX

In my wordpress site, I have inside the loop of single.php , a select tag in which the options are the posts of the current category returned via a custom query. On changing selected option, I have ...
1
vote
2answers
1k views

Using query_posts inside single.php loop

Inside of my loop in single.php, I used a custom query using get_posts to return posts belonging to a certain category. <?php global $post; ...
0
votes
2answers
453 views

How can I add a delay to the collapsible menu in Twenty Eleven?

The navigation menu closes immediately upon moving the mouse outside of the menu item's area. How can I introduce a delay that will keep it open a second or less to keep visitors from becoming ...