I'm currently using this to list all the categories:

<?php 
    $args = array (
    'menu' => 'secondary-navigation',
    'sort_column' => 'menu_order',
    'container' => 'false', 
    'title_li' => 0,
    'hide_empty' => 0
    );
    wp_list_categories($args);
?>

This will simply list all the categories in hierarchy and with each item anchored.

My categories are actually set-up like this:

Parent
    -> Child
        -> Grandchild
            -> Great Grandchild

My problem is that I only want the Great Grandchildren to have anchors. I don't want Parent, Child or Grandchild to have anchors.

Any suggestions would be appreciated.

Edit
Report