Support » Fixing WordPress » Categories with Counts in Footer

  • I’m a bit of a newbie to WP, so I apologize if this seems like a dummy question. I’m trying to change my footer so it displays the categories with counts in the footer. I assume I need to alter both the style sheet and the footer.php file, is that correct? Basically I would need a step by step. Anyone willing to help out?

    Thank you!

    Dustin

Viewing 2 replies - 1 through 2 (of 2 total)
  • You will probably want to use this function in footer.php

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

    Then style it with adding stuff to your style.css file in your theme folder.

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

    is the basic code to go in footer.php. You will probably need to wrap it like:

    <div class="footerCats">
    <h5>Categories</h5>
    <ul>
    <?php wp_list_categories('title_li=&show_count=1'); ?>
    </ul>
    </div>

    and then in style.css you can style .footerCats along with .footerCats ul, etc

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Categories with Counts in Footer’ is closed to new replies.