Dear, my first topic. Sorry but I looked a lot in the forum and have not found the answer … and i believe it is a beginner question (sry)
I’m needing to show the total amount of post resulting from a query, I see always in the forum is structured as follows: “$wp_query->found_posts”
However, the theme I’m using uses the structure to make the queries as follows:
$args=array( 'showposts' => 10, 'paged' => $paged, 'year' => $today["year"], 'monthnum' => $today["mon"], 'day' => $today["mday"], 'meta_key' => $meta_key, 'orderby'=> 'meta_value_num', 'order' => 'DESC' ); query_posts($args); <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
How do I get the value of $found_posts query with this structure?
- The topic ‘$found_posts’ is closed to new replies.