• Hey guys, I was wondering how would i go about accomplishing the following:

    I have the following categories:

    Cat 1
    Cat 1.1
    Cat 2
    Cat 2.1

    I want this html code

    <div>
    <h2>Cat 1</h2>
    <ul>
    <li><a href="{the link}"><span>Cat 1.1</span></li>
    </ul>
    </div>
    
    <div>
    <h2>Cat 2</h2>
    <ul>
    <li><a href="{the link}"><span>Cat 2.1</span></li>
    </ul>
    </div>

    I would really prefer to customize the html rather than taking my existing css and changing it for the default wp_list_categories() output.

    thank you

  • The topic ‘customize wp_list_categories() output’ is closed to new replies.