WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Get the number of loaded posts (2 posts)

  1. theal3x
    Member
    Posted 1 year ago #

    How to get the number of loaded posts on a particular page?

    Thx anyway.

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

    for a 'normal' loop, possibly with:

    $wp_query->post_count

    will be different if you are using a custom query and loop.

Topic Closed

This topic has been closed to new replies.

About this Topic