[wp-hackers] Top level current page navigation

Jennifer Hodgdon yahgrp at poplarware.com
Mon Dec 1 19:29:12 GMT 2008


There's a function in wp-includes/category.php called
    cat_is_ancestor_of()
that might help you, if I've understood correctly what you're trying 
to do.

     --Jennifer

Dan Gayle wrote:
> RIght now I am running a convoluted method of determining current page 
> navigation for a client's blog that has thousands of posts and hundreds 
> of pages:
> [...]
> What I need is to have the top level navigation be highlighted as 
> current for a specific category and any/all of its children.

-- 
Jennifer Hodgdon * Poplar ProductivityWare
www.poplarware.com

Drupal/WordPress Sites, Themes, Modules/Plugins
Custom Web Programming, Web Databases
PHP, Perl, MySQL, JavaScript, XML, AJAX



More information about the wp-hackers mailing list