Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 394

Navigation Menu is a theme feature introduced with Version 3.0. WordPress includes an easy to use mechanism for introducing customised navigation menus into a theme. In order to incorporate menu support into your theme, you need to add a few code segments to your theme files.

1 vote
2 answers
461 views

How to generate a list of child pages, and use some of their custom fields?

I have a page structure like this: -Home -Cars -Volvo 640 - Pics - Info -Porsche 911 - Pics - Info I'd like to generate a list of cars on the Cars page of all the cars (which are ch …
cannyboy's user avatar
  • 1,033
0 votes
3 answers
246 views

Two-tone menu items

wp_list_pages seems to print out menus ok, but is there a way to alter the functionality so that i can display the menu in two colors..? …
cannyboy's user avatar
  • 1,033
3 votes
1 answer
360 views

How to implement separate sub-menus?

I want to implement two menus that work like this: Cars *Animals <-selected Recipes -- Bear *Dog <-selected Cat So the top menu in the main menu, the the menu below is the sub-menu. … Not all main menu items have sub-menus. Is there an elegant way to implement this? Preferably, selecting the top menu item would select the first sub-menu. wordpress version 3.03 …
cannyboy's user avatar
  • 1,033
0 votes
2 answers
127 views

Automatically going to the first page in a hierarchy?

And then on the individual car pages, have more sub-menus for overview, tech spec, and pictures page. …
cannyboy's user avatar
  • 1,033
0 votes
4 answers
4k views

Listing Child Pages in a Certain Order?

I'm trying to show child-pages in a certain order, in a list. This is my code to output the pages as a list: $parent = $wp_query->post->ID; wp_list_pages("title_li=&child_of=$parent&echo=1&sort_colu …
cannyboy's user avatar
  • 1,033
2 votes
1 answer
401 views

Where do custom menus get constructed?

I've created a simple menu in wp-admin>appearance>menus called main-nav. Works fine. … I can't work out where the menus get constructed in code. where can I can add this... any ideas? …
cannyboy's user avatar
  • 1,033
43 votes
2 answers
53k views

Customizing Only a Specific Menu using the "wp_nav_menu_items" Hook?

My code for registering the menus is: register_nav_menus( array( 'primary' => __( 'Primary Navigation', 'twentyten' ), 'secondary'=>__('Secondary Menu', 'twentyten' ), ) ); ..and the code to display …
cannyboy's user avatar
  • 1,033
5 votes
3 answers
854 views

Can I display submenus in groups, using wp_list_pages?

The nearest I can see is the 'authors' option, but it doesn't make much sense to login as different users to create different blocks in the menus... …
cannyboy's user avatar
  • 1,033