WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] show the total number of posts in your blog except one category (4 posts)

  1. Joun007
    Member
    Posted 3 years ago #

    can anyone tell me how can i display the total number of posts in my blog except one category?

  2. Chip Bennett
    Theme Review Admin
    Posted 3 years ago #

    1) Create a custom WP_Query, in which you exclude the one category
    2) output the post count from the the_posts object
    3) reset the query

  3. Joun007
    Member
    Posted 3 years ago #

    how do i output the post count from the_post object?

  4. Joun007
    Member
    Posted 3 years ago #

    done thanks :D

Topic Closed

This topic has been closed to new replies.

About this Topic