Trying to extract all the postst of a certain type but get only 12 of the total of 25. Here is my code.
As can be seen the script only outputs the page 2 from the wp admin panel.
2
Try to replace
'numberposts' => -1,
With this
'posts_per_page' => -1,
You got a 25 posts by this query
$args = array( 'post_type' => 'your-post-type', 'post_status' => 'publish', 'posts_per_page' => 25, );
Click here to cancel reply.
2
Answers
Try to replace
With this
You got a 25 posts by this query