WordPress Info at sieker.info

update to WP-PagesNav

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

5 Comments

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”>

Comment by Johan — 14 May 2006 at 18:11

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

Comment by Adi J. Sieker — 15 May 2006 at 12:26

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).

Comment by weekend — 22 June 2006 at 13:58

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

Comment by Susan Kitchens — 7 September 2006 at 1:34

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!

Comment by Matt Johnson — 2 November 2006 at 23:44

Sorry, the comment form is closed at this time.