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?
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?
You can show the number of posts displayed with get_option:
<?php $numposts = get_option('posts_per_page'); ?>
This topic has been closed to new replies.