get_post() numberposts -1 returning blank screen
-
I have a problem with returning all my posts for a custom post type.
This is the code I am using below.$arch_nl_args = array('post_type' => 'bqdaily_archived', 'numberposts' => -1); $arch_nls = get_posts($arch_nl_args);
If I change the numberposts to 100 it works, there is currently 118 posts for this post type but it expands on a daily bases.
Is this a problem with my server, if so what could I do.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_post() numberposts -1 returning blank screen’ is closed to new replies.