• 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

    (@jdembowski)

    Forum Moderator and Brute Squad

    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.