Sabrina Gelbart's Library tagged → View Popular
101 Techniques for a Powerful CMS using WordPress | Noupe
-
- <ul id="nav">
- <?php wp_list_pages('title_li=&depth=1'); ?>
- </ul>
- <?php if($post->post_parent)
- $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0"); else
- $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
- if ($children) { ?>
- <ul id="subnav">
- <?php echo $children; ?>
- </ul>
- <?php } else { ?>
- <?php } ?>
Creating Two-Tiered Conditional Navigation in Wordpress »
A common navigational scheme, parent pages on top and child pages (if they exist) on bottom:

How To »
Darren Hoyt goes through a nice solution 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.
And then he show us how to use CSS to make sure the :active and :hover states display correctly whether or not subpages exist — if they do, the primary nav uses current_page_parent, if they don’t, it resorts to simply current_page_item.
-
7. Create a sitemap for the whole website
Google XML Sitemaps- This plugin will create a Google sitemaps compliant XML-Sitemap of your WordPress blog. It supports all of the WordPress generated pages as well as custom ones. Everytime you edit or create a post, your sitemap is updated and all major search engines that support the sitemap protocol, like ASK.com, Google, MSN Search and YAHOO, are notified about the update.
- 1 more annotations...
Selected Tags
Related Tags
Sponsored Links
Top Contributors
Groups interested in wordpress
-
WordPress 2.5
Items: 120 | Visits: 155
Created by: Toshiro Shimura
-
Wordpress
Wordpress相关的东西,像插件、皮肤之类的。
Items: 24 | Visits: 166
Created by: JX Wong
-
Wordpress Themes - Customizable
Wordpress Themes with vario...
Items: 15 | Visits: 154
Created by: Sue Blimely
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo


