WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Category Widget Formatting (3 posts)

  1. AmandaEve
    Member
    Posted 1 year ago #

    My Category Widget in the sidebar has the # number of posts in that category underneath the category title ... I'd like it on the same line.

    http://www.fathomtheatre.ca

    Thanks for your time.

  2. alchymyth
    The Sweeper & Moderator
    Posted 1 year ago #

    add a filter to functions.php of your theme:

    add_filter('wp_list_categories', 'cat_count_inline');
    function cat_count_inline($links) {
    $links = str_replace('</a> (', ' (', $links);
    $links = str_replace(')', ')</a>', $links);
    return $links;
    }
  3. AmandaEve
    Member
    Posted 1 year ago #

    Most excellent my friend. Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic