The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
28 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 ...
-1
votes
0answers
5 views

Customizr Main Nav Menu Only Visible Except in Small-Width View [on hold]

For some reason in this installation of Customizr on WP4.0, the nav is not visible except in small width rendition: mZoo.org It's there, but it's just not showing up. Any ideas?
0
votes
1answer
10 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
19 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
14 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
19 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
36 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
52 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
0answers
74 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
12 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
93 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
99 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
17 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
30 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
43 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
37 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
88 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
30 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
109 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
61 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
11 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
474 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
90 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
57 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
688 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
242 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
27 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
41 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
47 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
45 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
89 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
65 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
249 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
46 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
22 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
46 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 ...
0
votes
0answers
21 views

how to proceed for a “new!” label on menu_nav? [duplicate]

I'm developing in Wordpress and would like to assign the label "new!" to specific custom-post-type's (not necessarily all post-types) if they contain new posts in the last 30 days. I found this code ...
0
votes
1answer
46 views

Use wp_nav_menu to display ALL pages

I am currently building a wordpress theme. For the menu, I just want to display all the pages that are created in the order that they are created in (i.e. I don't want users to have to go into the ...
0
votes
1answer
553 views

Custom Nav Walker sub-menu HTML construct

I've got my Custom Nav Walker set up and it works fine with the main menu items, and displays them how I want. However the same HTML is being applied to the sub-menu elements which isn't what I want. ...
0
votes
0answers
76 views

Custom Menu echo own HTML

I've registered a custom menu and got all that set up, however the formatting of the HTML that the menu uses doesn't fit with the CSS/HTML menus I had previously and want to keep. Therefore I was ...
0
votes
1answer
148 views

Next/previous a-like single navigation

I have on the site navigation menu which uses next/previous functionality to navigate through the site. Currently it is a hard coded image map with related links on each page. I know how to get ...
0
votes
0answers
20 views

Output only the 3rd level of menu

Currently I use wp_nav_menu to output the first and second level of the menu in the header of the page. However the menus have more depth than that and I need the third level to be shown at a ...
0
votes
2answers
65 views

How to get main menu only with wp_nav_menu

I have created one menu and have some sub-menu but I don't want to display any sub-menu from my template. My Menu code: <?php wp_nav_menu( array('menu' => 'header-uk', 'menu_id' => 'nav', ...
1
vote
2answers
57 views

Detecting classes, adding widgets, and adding divs in with a Nav Walker

I've been trying to figure this out for days, to no avail. A template I'm building requires a mega menu. The markup for the menu looks like this: <nav> <ul> <li><a ...
1
vote
1answer
119 views

Set if condition with wp_nav_menu

I have created one new menu and add bellow code in footer.php to display my menu wp_nav_menu( array('menu' => 'footer-cn', 'menu_id' => 'nav', 'menu_class' => 'ft-nav' )); Currently I did ...
0
votes
1answer
38 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 ...