How can i get the row counts in query post like mysql count(*).
$obj_name = new WP_Query($args);
while ($obj_name->have_posts()) : $obj_name->the_post();
// here i want to predict looping counts
How can i do this.
$num = $obj_name->post_count;
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
4 years ago