Hi All,
How do i count how many posts there are in query_posts ?
I want to create
if (have_posts()) {
if ($myposts >= 50) {
But dont know how to give $myposts the amount of posts here....
Thanks!
Hi All,
How do i count how many posts there are in query_posts ?
I want to create
if (have_posts()) {
if ($myposts >= 50) {
But dont know how to give $myposts the amount of posts here....
Thanks!
try:
$myposts = $wp_query->post_count;
This topic has been closed to new replies.