WordPress.org

Ready to get started?Download WordPress

Forums

Display the number of posts beside category (4 posts)

  1. Rezan
    Member
    Posted 3 years ago #

    I was wondering if there is any widget looks like "Mystique" category that show total number of post besides the category as number.
    Such as Guesthouses(25).
    That means total posts in Guesthouses category is 25.
    Or there isn't any widget the
    n how can I do it in code?
    Thanks for your help.

  2. alchymyth
    Forum Moderator
    Posted 3 years ago #

    the 'default' category widget has that option.

    or are you thinking of something different?

  3. Rezan
    Member
    Posted 3 years ago #

    I know that I am trying to implement it to another them and I don't know how to do it.

    Thanks

  4. alchymyth
    Forum Moderator
    Posted 3 years ago #

    i have no idea what the theme 'mystique' does, however generally:

    if you are using wp_list_categories() you have the parameter 'show_count' which you can set to '1' to show the numbers:

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

    or if you are using the 'categories' widget, you can tick the 'show post count' box in the widget options:
    http://imageshack.us/photo/my-images/834/categorieswidget.jpg/

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.