How to disable pagination in WordPress’ API results?
When calling WP_Query directly, you should use posts_per_page and not numberposts — it is an alias for posts_per_page, but only used with get_posts(). // These work, but I strongly advise against using 999: $fs_ski_resorts = get_posts( array( ‘numberposts’ => 999 ) ); $fs_ski_resorts = get_posts( array( ‘posts_per_page’ => 999 ) ); $the_query = new WP_Query( … Read more