Viewing 1 to 7 of 7 items
Tag Archives: wp_list_pages

WordPress select menu navigation for mobile sites

The first option is to follow both of these untried tutorials: http://www.xldstudios.com/generating-select-menu-in-wordpress/ http://www.xldstudios.com/javascript-snippet-go-to-site-selected-in-drop-down-menu/  The second option is to try this amazing plugin. http://wordpress.org/extend/plugins/dropdown-menus/ 

0

Exclude pages in a section (exclude_tree)

All you have to do is include this block of code in your template the same way you would the regular <?php wp_list_pages();?> tag. Page IDs that you would normally pass to exclude_tree go in the first line):

0

Sidebar menu with a child pages regardless of depth – WP Engineer

This article was taken from WP Engineer: http://wpengineer.com/display-always-subpages-in-sidebar/ In this article I want to show an example in which are the main pages in a horizontal navigation. The related sub-pages are displayed in the sidebar when you click on the main page. For better understanding we take the following page structure: Home Software Image Editor  Full Article…

0

Horizontal Two-Tiered Conditional Navigation

We’ll need code to help us: 1) query the page, 2) determine if there are child pages, and 3) properly highlight both the .current_page_parent and .current_page_item links. If you’re wondering why the CSS seems overly verbose, it’s to make sure the :active and :hover states display correctly whether or not subpages exist — if they  Full Article…

0

Get the root page ID

Get the ID of the root (oldest ancestor, parent without parents) page relative to the current page in a WordPress page template. Can be helpful for use with wp_list_pages() to create navigation markup.

0