WordPress.org

Ready to get started?Download WordPress

Forums

Just the Number of Posts in Category (3 posts)

  1. digiLan2005
    Member
    Posted 8 years ago #

    Hello,

    Is there a way to get just the number of posts in a category. I searched through the category php file and couldn't find anything.

    What I want to do is have a link to a 'page' (eg. tutorials directory) that lists all the posts in the category 'tutorials'. I want to list the link to this 'page' with the number of 'tutorials' in the 'tutorials category' next to it.

    Cheers,
    Anders

  2. MichaelH
    Member
    Posted 8 years ago #

    The Template_Tag, wp_list_cats and the optoncount parameter should give you that.

    See also
    Template_Tags/list_cats

  3. digiLan2005
    Member
    Posted 8 years ago #

    Any idea on how to make a function that would work from the optioncount. I tried a bit but haven't had any success yet...

    Also does anyone know how to display just one category at a time by giving the id?

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.