The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
2answers
38 views

Add dynamic content block to nav section generated by custom walker

I am working on a theme that requires a piece of dynamic content nested in the navigation. I'm using a custom walker to generate the menu. I need a way to add markup to the code that will be editable ...
0
votes
1answer
12 views

How to make menu items active based on hash

I'm creating a Wordpress portfolio site using the Simone theme. I have three menu items that link to the same page but with different hashes: tovly.com/work/#work-all-work ...
0
votes
0answers
9 views

get adjacent post by meta key and meta value

I'm trying to limit previous/next navigation to posts that have the same meta_value on a certain meta_key. I know this was asked before, but I couldn't pick a working answer. And all that I could come ...
0
votes
0answers
12 views

WordPress BootStap Navigation Drop Down Not Working [closed]

I am working on a Bootstrap WP site and everything is working fine except the navigation. The main navigation appears fine but the drop downs do not drop. Here is the original Bootstrap navigation ...
0
votes
1answer
33 views

A simple question regarding tags and categories

I was wondering if there was an easy way to display posts from a tag from a specific category. In other words, if I have Category1, Category2, and Category3, and these all have posts with a tag ...
0
votes
0answers
43 views

How to get the Next & Previous Post Opening in Zurb's Reveal Modal Lightbox

I have set up a loop that has my posts opening successfully in a reveal modal lightbox but I'm having difficulty getting the next and previous posts to open in the lightbox. The previous_post_link() ...
0
votes
0answers
18 views

Posts of Certain Category as Menu

I want to retrieve posts by certain category dynamically as a menu. What I need is: On the left-side of the page I want to display a menu as following | Category Name | | Post of This | | ...
0
votes
0answers
15 views

Wordpress Multisite Naviagtion, child and grandchild pages [duplicate]

I have a Wordpress multisite that contains 3 sites - site-1, site-2 and site-3. site-1 and site-2 are sigle page sites. site-3 contains child and grandchild pages. I want the same nav to appear on ...
0
votes
0answers
22 views

Custom menu walker: Repeating a menu item when it has children

I am trying to repeat a menu item when it has children. To better understand, maybe take a look at this example markup: <ul id="main-nav"> <li>Item 1</li> <li ...
0
votes
0answers
25 views

Multisite navigation with site pages [duplicate]

I have a WP multisite set up that contains 3 sites. Every page has a central navigation that links to each site. I'm using this code to create the nav linking each site: <div ...
0
votes
0answers
12 views

How to create new options within the menu?

I have created a custom menu using the walker class which was fairly simple but for the life of me I can not work out how to add options to the navigation item. For instance I am wanting to make a ...
0
votes
1answer
33 views

Display all posts thumbnails when viewing a single post

The idea is - when a user is viewing a post, he has the thumbnails of all the other posts in the bottom or something like that. It sounds simple at first but what I'm looking for is something similar ...
0
votes
1answer
13 views

Creating a page that does not show up in the frontend navigation bar

My plugin needs to add a few screens to the frontend of the site, eg. a history overview (http://www.site.com/history?event=X). At first, I implemented this by programmatically adding a page with a ...
0
votes
0answers
25 views

Page Navigation not working for the next pages

I use a custom template to display the lists of post. The pagination design works, and even the post_per_page works but then it only display the post indicated for the post per page. so when clicked ...
0
votes
0answers
16 views

current_page_item not being added in menu output

I've created a menu that I call on using following code. <?php wp_nav_menu( array( 'menu' => 'Primary Nav', 'container' => '', 'items_wrap' => ...
0
votes
0answers
34 views

Adding a custom field/property to wp_nav_menu object

i'm a noob with wp, and have been trying to search around to find a way to add a option/setting/custom meta field to a navigation menu object where i can flag it as being a global nav; this is to be ...
0
votes
1answer
50 views

posts_nav_link on single post template

I have a post type called journal and on the single-journal.php template I am querying the rest of the journal posts like so: <?php query_posts( array( 'posts_per_page' => 4, ...
0
votes
0answers
97 views

Wordpress Wp_nav_menu How to create Columns in submenu

i have been trying to develop custom navigation in wordpress. i want to add columns in sub menu item. i want to add images in navigation as well as create Multi column Navigation. Please check this ...
0
votes
1answer
19 views

How to make previous_post_link into an image [duplicate]

I would like to make the previous and next post link into an image instead of a link text e.g. <a href="%link"><img src="" /> </a> so whatever the size of the image it would be ...
0
votes
1answer
170 views

Bootstrap 3 - how to to highlight the parent background when hovering over the child menu

Hello Wordpress Guru's. I would be delighted for some assistance with a simple issue. I am using the wordpress-bootsrtap-master theme. I would like the parent of the menu item to remain highlighted ...
0
votes
0answers
13 views

How can I put a custom field value that needs to be inside the loop, in a custom menu via functions.php?

How can I put a custom field value that needs to be inside the loop, in a custom menu via functions.php?? I'm working on a bilingual website and I'm using the Bilingual Linker plugin. I was able to ...
0
votes
0answers
14 views

Custom Link Not Registered as Nav Menu Parent

My issue is that I have a horizontal menu, with a few hashed - '#' - custom menu links to prevent users from going to empty pages (the main categories were just made pages for the link structure). ...
5
votes
2answers
101 views

How to model a hierarchy for courses, levels and lessons?

I'm a bit of a wordpress noob and I'm diving head first into a course creation plugin. The structure will go program > course > level > lesson. Right now I have lessons set up as a custom post type ...
-1
votes
1answer
171 views

Previous / next posts using featured image thumbnail as links

I need navigation to two previous and two next posts, inside same category. I made it working great for one previous and one next post inside same category. This is what I have now. Previous post: ...
0
votes
1answer
28 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
36 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
61 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
61 views

wp_page_menu not working right?

I try to create simple menu in custom theme. WordPress version is 3.9.1 So I taking code from here http://codex.wordpress.org/Function_Reference/wp_nav_menu, just change menu and container class / id ...
0
votes
1answer
101 views

WordPress 3.9 two menus in same position?

I have a new WordPress theme and I want to add extra menu, but as WordPress 3.9 allows only one menu to add in one position/places in theme? How can I add two menus in one position? I purchased the ...
0
votes
2answers
34 views

:first-child applying to all links [closed]

I am trying to remove the margin-left:10px; from the first menu item in my main navigation. I am ussing a wordpress custom navigation for my site. I have tried the :first-child method but this seems ...
0
votes
2answers
183 views

How to make Next and Previous attached image navigation on the attachment page? [duplicate]

How to make Next and Previous attached image navigation on the attachment page? ' . __( 'Previous Image', '$text_domain' ) . '' ); ?> ' . __( 'Next ...
1
vote
0answers
95 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, ...
0
votes
1answer
16 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
0answers
27 views

WordPress HTML Menu

I'm trying to get the menu on my WordPress site to append the class like so: <ul class="nav navbar-nav navbar-right"> <li><a href="/">Home</a></li> <li ...
2
votes
3answers
823 views

Add Javascript to Wordpress Menu

Is there a way to put javascript in the URL portion of a Wordpress menu item? I have a live chat function on my site, and I am supposed to put this code onto the site to make a link to open the live ...
0
votes
0answers
139 views

Bootstrap Nav Menu not showing more than 1 dropdown

I have this code to show my navigation menu in the functions.php file. class BootstrapNavMenuWalker extends Walker_Nav_Menu { function start_lvl( &$output, $depth = 0, $args = array() ) { ...
0
votes
1answer
79 views

Extend walker - navigation, adding data attribute to a tag

I would a data attribute to the a tag in the menu, like have <a href="#example" data-attribute="attribute">CLICK</a> I know that I have to extend the Walker BUT I tried in several times ...
8
votes
1answer
887 views

Mega Menu Walker

I'm trying to create a mega menu walker. Unfortunately, walkers completely escape my coding knowledge. I could really use some help getting it working. Here's the features I need: Wrap the ...
0
votes
2answers
411 views

Custom Taxonomy Breadcrumb Navigation

I'm completely new to custom post types and custom taxonomies, so bear with me. I'm trying to create a breadcrumb navigation for the custom taxonomy project-category within the custom post type ...
0
votes
0answers
37 views

Hide third level nav items from side menu

I am using the following to list all child items of a main nav item in my sidebar: <?php if($post->post_parent) { $children = ...
0
votes
2answers
43 views

posts_nav_link pulling in multiple post types

I have an archive-regularproducts.php set up that looks like so: PHP: <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> //content goes here <?php endwhile; ...
0
votes
1answer
54 views

Custom navigation menu with awsAccordion

I'm making a custom template for my client. Well i'm strangling for hours, for making the vertical accordion menu dynamic so my client can change the nav links etc. The structure of the navigation is ...
1
vote
1answer
61 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 ...
3
votes
2answers
113 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 ...
0
votes
0answers
84 views

Complex menu structure with 6 custom post type hierarchy

We chosen to use Wordpress to this client but we have not work with a menu structure like this one on Wordpress. Those content types i what we have created as custom post type. Is listed below: ...
1
vote
1answer
397 views

Change an li class name in a wordpress custom menu walker

I'm building a nav that has a class applied to the main LI's and the nested LI's. Example: <ul> <li class="className">Test</li> <li class="className">Test <ul> ...
0
votes
0answers
57 views

Walker_Nav_Menu - creating separate menu for current top level item children

I have had hard time making wordpress custom walker work as I want and I think the problem might be somewhere else. I have a nav tree which looks like this: What I want to do is to have two ...
0
votes
0answers
26 views

wp_nav_menu: current_post_ancestor-category parent

I have a nav like this: page 1 -- page 1.1 -- category 1.2 page 2 page 3 When I am on a single post in the category 1.2, the category-menu-item gets the correct class current-post-ancestor and ...
0
votes
0answers
50 views

Post label “new!” in wp_nav_menu using class?

I'm looking for a function to add a "new" label in front of my custom post type name in my navigation menu. The code is : <?php $args = array( 'numberposts' => '1' ); $recent_post = ...
0
votes
0answers
21 views

Transfering static site to wordpress and retaining category by month paginations

Firstly apologies for the long post. I have a project in the works to transfer a static html new site into a cms. I've chosen wordpress, because it seems to be the easiest to maintain and manage from ...