• 1. The Category widget shows the list of existing categories. I need this list to begin with “All posts”, with the number of all posts in the brackets.

    2. Is there a way to show the number of posts without round brackets, just the number?

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    The widget uses wp_list_categories() to do its thing, so you can use the “wp_list_categories” filter to alter the output. Some sort of search/replace PHP string function like str_replace() will be able to weed out unwanted characters.

    Such a filter will be applied to all instances of the function, not just your widget. This might work for you. If not, you should add the filter within some sidebar action so the filter will only be applied to sidebar content.

    • This reply was modified 8 years, 2 months ago by bcworkz. Reason: typo
Viewing 1 replies (of 1 total)
  • The topic ‘“All posts” in the category widget’ is closed to new replies.