Jesse Haubrich and Ken Westin (www.sozoweb.com) posted a patch to add a css class to the parent of the current page. They added the patch month and month ago and Murray got me to add it the source. Latest version is available here.
adi
update to WP-PagesNavJesse Haubrich and Ken Westin (www.sozoweb.com) posted a patch to add a css class to the parent of the current page. They added the patch month and month ago and Murray got me to add it the source. Latest version is available here. Sorry, the comment form is closed at this time. |
|
Any idea how to set a different title for each <a>
in the WP admin when adding a page
Also the first <a> should be the home link like
<a href=”/” rel=”nofollow”>
Hi,
there is no way to supply an alternate title for the navigation.
You will have to add the home link manually,
something like this:
<ul>
<li><a href=”<?php echo get_settings(’home’); ?>”>Blog</a></li>
<?php wp_pages_nav(”sort_column=menu_order&show_all_parents=0&show_root=1&list_tag=”); ?>
</ul>
Regards
Adi
Do you think you should put the parameter “list_tag=1″ in template-source.php?
It seems to be not working as the css for the top level doesn’t work(white text and no backbround color).
Hi Adi… Susan Kitchens here. A while back (sometime in 2005?) my boyfriend and I altered PagesNav to display only ancestors + siblings of the current page. I remember corresponding with you at the time and I sent you our code. Did you ever incorporate it into the plug in? Do you plan to?
Cheers,
Susan
Great plug-in. Though something should be mentioned in the readme.txt about the list_tag and the fact that you can use standard wordpress parameters like “sort_column=menu_order” to the wp_pagess_nav - that was a bit unclear and took a few hours to figure out (Only figured out after coming here and reading your comment)
Anyway, great plugin. Good work!