WordPress – Custom taxonomy navigation menus
Posted: June 22nd, 2012 | Tags: PHP • Tutorials • Wordpress | Posted in: Tutorials, WordpressThe product of today’s messing around with WordPress custom taxonomies in a bid to finish a client website – I needed to generate a navigation based on categories stored in a custom taxonomy. Here’s the gist of it: function displayTaxonomyNav($taxonomy, $baseURL) { $output = NULL; $rangeNames = get_terms($taxonomy, ‘orderby=id&hide_empty=0’); foreach($rangeNames …
Read more…