WordPress.org

Ready to get started?Download WordPress

Forums

Number of posts shown (2 posts)

  1. kurai
    Member
    Posted 6 years ago #

    Is there a variable that returns the number of posts shown, as set in the backend?
    Or should I use a database query to get it?

  2. You can show the number of posts displayed with get_option:

    <?php $numposts = get_option('posts_per_page'); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic