customize wp_list_categories() output (1 post)

  1. 3v1l5w1n
    Posted 7 years ago #

    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

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

    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

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.