WordPress.org

Support

Support » How-To and Troubleshooting » Getting bulletpoints in category list

Getting bulletpoints in category list

  • Ive got bullet points in all my other sidebar items, but I can’t seem to get them in my category list. I’ve tried comparing to the other items but I’m not having any luck.

    This is an extract from Sidebar.php

    <!– Categories –>
    <h2><?php _e(‘Categories’); ?></h2>

      <?php list_cats(0, ”, ‘name’, ‘asc’, ”, 1, 0, 1, 1, 1, 1, 0,”,”,”,”,”) ?>

    <!– End of Categories –>

  • <!– Archives –>
    <h2><?php _e(‘Archives’); ?></h2>

      <?php wp_get_archives(‘type=monthly’); ?>
  • <!– End of Archives –>

    I’ve got the

      tags in there, don’t understand why it won’t work though 🙁

Viewing 8 replies - 1 through 8 (of 8 total)
  • good ol’ bump

    You’re missing one

  • tag right before this code…
  • <h2>
    Categories
    </h2>

    It looks like you’re using an opening li and closing li to create a few spaces after each section in your sidebar. You should be using line breaks, or even more correctly setting a margin to create this space. The li tag wasn’t meant to be used as a spacer.

Bah, the tag you’re missing is an li tag.

Thanks for the reply, could you post a snippet of what my code should look like?

Do i need to put in a <h2> or a li tag? and where?

Many thanks

Look for this in your code…

<h2>
Categories
</h2>

Change it to look like this…

  • <h2>
    Categories
    </h2>
  • Rather, change it to look like this (replacing [ and ] with < and >)…

    [li]
    [h2]
    Categories
    [/h2]

    My sidebar code for categories looks like this:

    <h2><?php _e('Categories'); ?></h2>
    <ul>
    <?php list_cats(0, 'all', 'name', 'asc', 'index.php', 1, 0, 1, 1, 1, 1, 0,'','','','','',1); ?>
    </ul>

    Right before all that code, add an li tag.

    Viewing 8 replies - 1 through 8 (of 8 total)
    • The topic ‘Getting bulletpoints in category list’ is closed to new replies.
    Skip to toolbar