Support » Everything else WordPress » Number of posts shown

  • kurai


    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?

Viewing 1 replies (of 1 total)
  • Moderator Jan Dembowski


    Brute Squad and Volunteer Moderator

    You can show the number of posts displayed with get_option:

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

Viewing 1 replies (of 1 total)
  • The topic ‘Number of posts shown’ is closed to new replies.