Forums

[resolved] wp_list_categories Help (4 posts)

  1. achaplin
    Member
    Posted 8 months ago #

    I have a working archive page, but there is one thing that I'd like to change.

    <h5>Archives by Subject:</h5>
    		<ul class="ulstylearchives">
    			 <?php wp_list_categories('optioncount=1'); ?>
    		</ul>

    This code outputs this:
    Archives by Subject:
    * Categories
    Light Technology
    Lighting Academy
    Lighting Efficiency
    News
    Outdoor Lighting
    Pro Tips
    Video

    It seems to be including a header "categories" followed by the 7 category names. How can I remove the header "categories"? Thanks in advance.

  2. NateJacobs
    Member
    Posted 8 months ago #

    Add title_li= to your arguments.

    <?php wp_list_categories('optioncount=1&title_li='); ?>

    http://codex.wordpress.org/Template_Tags/wp_list_categories

  3. achaplin
    Member
    Posted 8 months ago #

    Thank You very much!

  4. NateJacobs
    Member
    Posted 8 months ago #

    You're welcome. Glad you got it working.

Reply

You must log in to post.

About this Topic