It seems the problem is solved by adding 'posts_per_page' => -1
which forces WordPress to show all posts matching the parameters. Here’s my final code:
array (
'post_type' => 'symposia_program',
'days' => $progDay,
'meta_key' => 'class_number',
'orderby' => 'meta_value_num',
'order' => 'ASC',
'posts_per_page' => -1
);
Related Posts:
- How to get order of posts?
- Order posts by ID in the given order
- How do I reorder (pop and push) items from WP_Query?
- How to order posts tag by tag?
- Reverse chronology of post listing
- How can I custom order the results from wp_list_categories?
- WP_Query post at custom position
- Sorting Woocommerce products with numeric titles [closed]
- How to Loop within a Loop (Display Children and then Grandchildren)
- Show all parents and children in custom post type in right order
- WP_Query Order by Specific Post ID First
- wordpress change the loop order by dynamic value
- How to order posts by meta_value created inside loop?
- How to get_posts where ‘menu_order’ is more than 0/zero?
- Query last updated posts (posts updated in the last 24 hours)
- Order by empty custom field
- How to order posts by title after they have already been sorted by category
- WP Query – order posts by meta field first and then order the rest
- How to check if a product is purchased within the last 365 days before displaying something
- Having Issue on Ordering CPT by Custom Field In Custom WP Query
- Filtering by multiple conditions in the loop
- WP_Query orderby random do not repeat infinite scroll – one loop
- Avoid WP_Query’s duplicate posts with taxonomies
- Loop order issue with Ajax filter
- Order posts alphabetically with numbers but some of the posts has numbers in the title
- SEARCH QUERIES – REVERSE OUTPUT
- Loop random posts and display odd and even based on two alternating meta values?
- How to order posts, that have already been filtered by custom taxonomy, by their category names?
- WordPress redundant posts based on meta field
- Display three sequential posts on each page load, without repeating previous
- Order by multiple meta keys on wordpress
- WordPress Not Sorting By Custom Field
- How to use orderby on meta_value when using Pods custom database table storage
- How to make FSE’s query loop to order by comments number?
- How to fix pagination for custom loops?
- Jquery Slider for profile template
- WP_Query – Order results by meta value
- Counting the posts of a custom WordPress loop (WP_Query)?
- if ( is_home() && ! is_front_page() )
- Get excerpt using get_the_excerpt outside a loop
- How to display Yoast SEO meta description in archive template for each post instead of the_excerpt()? [closed]
- How do I exclude a custom taxonomy from the post loop
- Get post content from outside the loop
- Can I force WP_Query to return no results?
- Why should I put if(have_posts()), is while(have_posts()) not enough?
- Resetting post data to previous loop in nested loops
- Can i merge 2 new WP_Query($variable) ‘s?
- Display featured products through custom loop in woocommerce on template page
- Split Content and Gallery
- Should we trust the post globals?
- Display all posts in a custom post type, grouped by a custom taxonomy
- Query multiple custom post types in single loop
- Some doubts about how the main query and the custom query works in this custom theme?
- How to get Author ID outside the loop
- Ignoring initial articles (like ‘a’, ‘an’ or ‘the’) when sorting queries?
- Get post count of current loop when using multiple queries on one page
- Multiple WP_Query loops with Pagination
- How can i display the content in plaintext
- Redirect loop when trying to login to /wp-admin/ [duplicate]
- How to split a loop into multiple columns
- Using a custom WP_Query with get_template_part loop
- WP_Query orderby post__in remains ineffective in the Loop [closed]
- Is it necessary to reset the query after using get_posts()?
- WP_Query orderby date not working
- How do you get the count of posts in an archive page?
- Is there any difference between the_title() and echo get_the_title()?
- AJAX with loop filtering categories
- WP_Query vs get_posts
- Do I need to use The Loop on pages?
- Remove the Homepage Query
- Order by optional meta key?
- Sorting: custom query with orderby meta_value_num THEN by title
- Loop within a loop?
- Order by DESC, ASC in custom WP_Query
- remove tags from the_content
- WP_Query and next_posts_link
- WP_Query order by multiple meta keys & fields
- Show posts without term
- the_title() shows title of the first post instead of the page title?
- How to force excerpts / teasers in the loop
- Usage of the new “posts_clauses” filter in WordPress 3.1?
- Retrieve each widget separately from a sidebar
- Getting Post Comments for post ID using WP_Query() and a Custom Loop?
- Display products from specific category in shop page
- Get first post from wp_query
- Why am I being limited to ten posts on a custom loop?
- How to list some posts first in the loop based on post id
- How to use a custom post type as front page?
- Should I use loop in the single.php file?
- Inject post (from specific category) between posts in Loop
- WP_Query: Why is sticky post not first item in loop?
- A search for ‘0’ returns results
- Pagination returns 404 after page 20
- Make loop display posts by alphabetical order
- Why do themes rely on “The Loop”?
- Query *only* sticky posts
- WP_Query: query posts by ids from array?
- Use WP_Query with have_posts()?
- Secondary Sort (fallback) for WP_Query
- Query Posts in a Predefined Order