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
- Using the Loop to show all levels of subpages under a parent page? Halfway there
- Cleanest Way to Select Every Second Element in a Loop?
- get custom post type by tag
- Get post by page name or slug
- save_post + insert_post = infinite loop
- Why do themes have `while( have_posts() )` in templates like single.php?
- What is best way passing variables to theme templates and using them different places like widgets?
- Apply styling only to first page sticky posts
- pop-up lighbox with AJAX
- Woocommerce custom loop to show all the products [closed]
- WordPress Loop – Style rows of posts differently
- Pagination is broken and I need help fixing it
- taxonomy tags 404 to custom post types
- Loop returning only 1 result
- Stuck in the query loop
- How to get the role id from the role name?
- How do I paginate a get_posts() request inside another page loop (Paginating childpages)
- Wrapping x posts in html without leaving empty html
- Include current post into loop
- How to Create a Random List of Child Pages
- How to display the featured image for each post?
- How to create a multidimensional array with multiple loops
- How to make posts unqueryable/unpublish posts where ACF relationship field is an unpublished post? [closed]
- How to create custom popup in shop page on every loop products?
- Get all posts with empty meta_value
- Getting posts link in WordPress
- Loop through an array inside a class using foreach [closed]
- WP_User_Query orderby meta_val_num
- Query Taxonomy By Page Title
- WP_Query custom order and pagination
- Can’t get the previous and next posts permalink
- Adding first and last classes to three column layout in Bones boilerplate
- How to change the default post type over the loop?
- Does search.php autofilter The Loop?
- Determine if ID is page or post and query the ID
- “the_excerpt” in loop just keeps repeating first post?
- How can I do a orderby by the number of items? So basically list by starting with the array with the largest number of post
- WP_Query order by multiple meta keys & fields
- Database query and get_user_meta return incorrect data
- Need to while loop and display contents in the subfield of a group field given by ACF
- Pagination inside the blog page not working
- Custom Query Pagination not working on static front page
- How to display a loop of custom post types in columns
- dispaly all hierarchical post types from a taxonomy
- WordPress Modal showing posts not working properly
- Query posts and display all dates in repeater field in chronological order
- Best way to Order Post in Home without a plugin
- Retrieving category pages from subcategory returns empty sets
- Attachment Metadata inside of Loop
- Template included with plugin doesn’t return all posts for custom taxonomy
- Loop through multiple custom fields with increasing number
- Different number of posts showing in development vs production server
- Order WP_Query results in order other than ASC or DESC
- Adding pagination to WP_Query [duplicate]
- Insert/sticky multiple posts in multiple positions
- Get post closest to today
- Stuck with conflicting loops on page template
- Multiple loop for “featured” items returns wrong posts
- Pagination in custom query not working [duplicate]
- How to get current page id and compare it to looped pages inside the same page?
- Show amount of posts created today above loop?
- How to create WordPress loop with combination of 4 and 2 columns twitter-bootstrap?
- posts_nav_link() not working on index.php
- How to add custom HTML markup and classes to the_content()?
- Show number of posts AND number on current page (cannot make it work)
- wp_mail function not working in user query loop
- How to set and retrieve cookies while in the loop