• DavidDarnes

    (@daviddarnes)


    I’m currently using wp_list_categories to list out a custom taxonomy, I’d like to highlight the current item using a special class to style. I’ve used it for normal categories and the ‘current_category’ parameter works perfectly (producing an extra ‘current-cat’ class), however it doesn’t seem to work with a custom taxonomy.

    <?php wp_list_categories( array (
    					'taxonomy'	=>	'uniquetaxonomy',
    					'current_category'	=>	1,
    					'title_li'	=>	''
    				)); ?>

    I’ve failed to find a solution online, I’m hoping someone might have a work around for this.

    Cheers

  • The topic ‘'current_category' Not Working with Custom Taxonomy’ is closed to new replies.