Questions tagged [sub-menu]
The sub-menu tag has no usage guidance.
346
questions
0
votes
1answer
2k views
List child terms and posts in the current term
With this code parent term page lists all the child terms and the child term page lists all of the posts in current term, and the single page lists a big flat list of terms(hierarchical).
Now,
The ...
1
vote
1answer
786 views
submenu item edit a specific post
I'd like to have a submenu item in the admin section link directly to the edit form for a specific post ID, a custom post type at that.
Basically looking at using the add_submenu_page function to add ...
0
votes
1answer
3k views
Change sub-menu css class
I use custom menus with drop down. I want to make two different drop-down menus each with different styling. Wordpress puts drop-down items in a single ul with class="sub-menu". But I need different ...
1
vote
1answer
193 views
Menus like a CMS
Here is an example structure of some content:
Parent A
-- Child A
-- Child B
Parent B
-- Child C
-- Child D
Parent A should link to the content of Child A and Parent B should link to the content of ...
3
votes
1answer
2k views
Primary and secondary menus
I am trying to make each individual tab on my primary menu link to the secondary menu so that in effect each individual primary tab leads to an individual set of tabs in the secondary menu rather than ...
0
votes
1answer
419 views
Problem adding 'has-children' class to wp_nav_menu
According to a number of references online, I should be able to use the following function to add the class, has-children, to menu items that have children under them:
function gtp_nav_menu_css_class(...
2
votes
2answers
3k views
wp_nav_menu() mark current item ancestor of custom post type
This solution does almost what I want it to.
Only thing is, I have my menu set up as follows:
Menu item 1
Menu item 2
Custom post type 1
Custom post type 2
Custom post type 3
Menu item 3
...
3
votes
1answer
393 views
Put a wp_nav_menu inside another one
I've got two wp_nav_menu's defined - main and sub. The backend menu editor lets me add pages or categories or custom links to my menu, and I can place them under existing pages/categories/links.
...
0
votes
1answer
15k views
Automatically Display Sub Menu
To start... I am new to Wordpress and developing themes.
I've got a main menu which I've placed in my header using the following code:
<?php wp_nav_menu( array( 'theme_location' => 'primary', ...
1
vote
1answer
4k views
Category menu item and its last 10 posts as sub-menu
i have some posts categories as element of a main navigation menu, and i'd like to display the ten lasts posts of this category as sub menu.
ex: Category1
Lastpost1
Lastpost2
The ...
4
votes
2answers
25k views
How show sub menu only using wp_nav_menu()
I am using this code to show the custom menu subpages if you are on the parent page. But what this code also shows is a parent page on a page that has no sub menu, which I would like hidden. Basically ...
0
votes
1answer
96 views
How to remove and disable access to General Settings Page including its link
How to remove and disable access to General Settings Page including its link on the Settings Tab and add a new link as General Settings?
0
votes
2answers
6k views
remove class “sub-menu” from wordpress drop down menu
I am building a wordpress website with dynamic wordpress menu + one level drop down menu (sub menu). since my drop down is a bit tricky and required special CSS I tried to remove the styling that ...
0
votes
2answers
2k views
Settings options not showing up on Sub Menu page in WordPress plugin
So I have a plugin with two user-customisable settings. (It's not complete but I'm getting the framework in place.) When the two settings are on the "general" settings page they work just fine...
...
4
votes
3answers
9k views
Add a .last class to the last <li> in each ul.sub-menu
I've seen a lot of code on how to add a first and last class to a WordPress menu, but in my instance I would like to add a last class to the last li in the sub-menu that WP generates. Here's what I ...
0
votes
2answers
185 views
a better menu, menu options assistance for WP
So long story short, im a noob WP dev and im like on my 2nd custom WP site so sorry if i sound a bit lost.
As i was doing my first WP custom site, i noticed that for example, on the default theme and ...
4
votes
1answer
1k views
Show only 2nd level of navigation depending on active navigation
For example, suppose a menu like so:
Parent 1
Child A
Child B
Parent 1
Child C
Child D
Child E
Parent 2
Child F
In a certain part of my template, I want something to show depending on ...
1
vote
1answer
902 views
Show menu based on parent & ancestor
Trying to show a wp menu based on parent. Works great on parent / child pages, but on grandchildren pages its failing. How should i restructure the menu selector to include the sub nav menu based on ...
2
votes
1answer
3k views
Sub-Pages only of menu items in current branch using a custom menu
Although I did a thorough research I could not find a solution. Only solutions coming close.
My custom menu ("top") shows this structure (you see a part of it):
page 1
subpage 1.1
category A
...
0
votes
1answer
1k views
How do I get my nav menu to show sub pages?
http://webdesignsalemoregon.com/westernmennoniteschool/ is my website.
I've got the top menu which is the one that was in the theme when I started to customize it. It's got a test drop down that ...
3
votes
1answer
873 views
Using custom post types in submenu + custom title
I'm planning to use a couple of custom post types for a plugin of mine. The whole plugin should reside under 1 toplevel menu item. Thus I would prefer a menu structure like so:
Dashboard
Posts
[...]
...
0
votes
1answer
921 views
wp_list_pages() not showing on posts
I have the following code showing up a sub-menu on my website (in my header.php file) that shows all well and good, however when I open up a post it dissapears:
<div id="dep-menu">
<?php ...
9
votes
3answers
7k views
Getting custom admin submenu item to highlight when its active
I have a custom post type, Jobs, with 3 taxonomies under it in the Admin menu.
One of the taxonomies is Status, which is either Active or Closed. I want a menu item under Jobs for Active Jobs. I ...
3
votes
1answer
6k views
Subpages return 404 error [closed]
I set permanent link as http://site.com/%postname%/.
I'm talking about this type of pages: http://codex.wordpress.org/Pages_Screen.
All first level pages work fine. But subpages don't.
For the first ...
-1
votes
3answers
1k views
Moving Categories submenu to Media, but still opens Posts menu
I'm developing a very media-centered site with WordPress and am using the default categories and tags on uploaded media using, in part this plugin Media Categories.
I am displaying a sub-menu item ...
0
votes
1answer
4k views
Adding Sub Menu In a theme which Do not have Menu Options
I am a new bee in wordpress but i can code in PHP. I have a free wordpress theme installed on my local host. The theme Do not have an option to add to add menu/sub menu in it. It comes with predefined ...
1
vote
1answer
634 views
next_post_link() on custom menu structure
In a blog, I am using next_post_link() and prev_post_link() extensively on posts.
I also have a number of pages that I show in a WP3 menu. They are organized in topics and sub-topics e.g. like so:
...
-1
votes
1answer
530 views
Should I custom code drop down menus or use a wordpress plugin?
EDIT -- Hopefully my question is more clear
What is the best practice for wordpress dropdown menus:
Custom CSS (editing styles.css)
Using a WP Plugin
I'm leaning toward coding it myself from ...
1
vote
2answers
1k views
Using default WP menu functionality to link to custom post-type listing?
I'm completely starting over with a wordpress project that began a couple of weeks ago, and basically i'm totally discovering wordpress, so please bare with me.
I might be completely misunderstanding ...
0
votes
1answer
287 views
Give Children Unique ID's
Is there a way I can give each wordpress children (subcategory UL lists) unique ID's? I'm creating a dropdown list for subcategories and I want to position them but :nth-child isn't supported by ...
1
vote
1answer
1k views
add_submenu_page function to show videos table
wondering if its possible to show the attachments admin list for videos by using a custom menu link?
Any pointers welcome! D.
add_action('admin_menu', 'mt_add_pages');
function mt_add_pages() {
...
0
votes
1answer
603 views
ID of parent Menu
I'm trying to assign a different ID to each sub-menu wordpress generates using the wp_nav_menu function. As it is, wordpress assigns the same class (sub-menu) to every sub menu generated.
<ul ...
0
votes
2answers
18k views
Dropdown primary navigation menu not working
I have installed a theme on WordPress added pages, created a custom menu called Primary Nav.
I have then assigned this as my Primary Menu. I have child pages and the menu looks like this.
I have ...
3
votes
2answers
484 views
Exclude one item from wp_list_pages( $args );
I have a menu that is currently shown with wp_list_pages( 'title_li=' );
This shows all the sub pages from all the pages in the menu.
I want to exclude a page with id 56 from displaying its sub items....
0
votes
1answer
6k views
Is there any way to change the CSS class applied to 2nd level sub menu ul's?
I'm running into a problem trying to style a drop down menu with a second level. Wordpress seems to apply the same .sub-menu class to any and all sub menus, and I can't figure out a reliable, cross-...
-1
votes
1answer
6k views
Add “sub-nav” class to a sub menu parent item
i have a problem. I have an CSS Dropdown Menu. The HTML Code of the is this:
<ul id="nav">
<li><a href="#">Home</a></li>
<li><a href="#">Archiv</a>&...
-1
votes
1answer
2k views
TwentyEleven horizontal submenu
I am trying to get the 2nd level menu items be listed horizontally (for Twenty Eleven theme on Wordpress 3.3 beta 4). I've tried modifying
#access ul li:hover > ul {
display: block; }
...
-1
votes
1answer
124 views
How can I alter the visible menu according to which level I am on [closed]
I want to be able to alter what is visible in the menu according to which level in the site structure I am on, for example
on top level page:-
Home
Level 1 page (Current)
-Level 2 page
-Level 2 ...
6
votes
1answer
12k views
Display only page specific sub menu items using Custom Walker
I've just implemented the technique described at http://wordpress.org/support/topic/wp_nav_menu-list-only-2nd-level-separate-submenu/page/2 when implementing a theme for a client. When I run the theme ...
1
vote
1answer
446 views
Admin - Load existing admin template as a submenu page
I'm trying to save my client a few clicks. I've created a custom role of "Customer" and I'd like to get them to that screen, without having to have them click "Users" and then select the "Customer" ...
0
votes
2answers
1k views
Add a submenu to wp_nav_menu
I literally don't know where to begin with this. The only wp_nav_menu() documentation I found was http://codex.wordpress.org/Function_Reference/wp_nav_menu and all submenu docs reference a different ...
0
votes
2answers
1k views
Conditional custom menu?
I'm trying to create a custom menu that displays a <li></li> when a user is logged in, and not display it when they're not. I have this so far, but it's not working. Does anyone know how ...
2
votes
4answers
2k views
How to restrict plugin's sub-menu pages to admin/subscribers?
I am working on a plugin with 6 submenu pages. I want 5 of them to be accessible by Administrators only and 1 of them to be accessible by Subscribers only.
Both user roles will have different ...
1
vote
1answer
626 views
How can I make this custom menu work?
Can someone share with me the easiest way to convert this to work with wordpressās 3.0 built in menu support. So far I have the topnav menu working correctly, but Iām having a hard time getting the ...
4
votes
3answers
6k views
Order Admin sub-menu items?
I am adding items to a CPT Admin menu using add_submenu_page which works great, but they are added to the bottom of the sub-menu after the CPT options. I want to be able to have them on top , but I ...
112
votes
10answers
44k views
Display a portion/ branch of the menu tree using wp_nav_menu()
I have a menu defined in WP Admin that looks like this:
I want to be able to display all the child links on the sidebar whenever I am at a parent page. For example, if the user is on my "About Us" ...