WP_Query will get posts, the whole post. If another repeater field instance has data for LotNos the sort parameter will not understand what you mean.
What I’d do is getting all posts just by the date. Than I’d make a loop and create an array of objects with the data you need from each post (title, LotNo, image, etc). Than I’d use php usort function to sort the posts by the LotNo.
Finally I’d do a foreach() with this sorted object to print the data.
Related Posts:
- Can an array be used as a meta_query value?
- Looking for most performant way to execute several similar WP queries within shortcodes
- Why do WP_Query results change after updating unrelated Advanced Custom Fields (ACF)?
- Form search query – displaying ACF “Post Object” field as results
- Remove Post if Advanced Custom Field is checked to fix paging
- Nested Queries of decreasing specificity
- Query on a repeater date (acf)
- List all ACF field values across every post on one page
- Ordering / grouping posts by datepicker ACF
- Display all values of custom a field created with ACF on a page
- If Custom Field is empty don’t display div
- Why does “get_option” pull in the older value in options.php, rather than the newer value, on submission of a form?
- WP_Query use for a filter with multiple Taxonomies and Terms
- Duplicates with WP_Query loop
- Display related products with custom output
- How do I dynamically generate args for wp_query?
- ACF: Only get first row of a Repeater Field
- Use wp_get_recent_posts with search term
- have_posts() execution failure
- Can’t search posts using WP_QUERY inside AJAX Function
- How can I use wp_query to show all product data using just the products ID?
- Custom page archive query by url var calling page twice on one of my custom queries?
- How to query for posts with a null or blank post_name?
- WordPress pagination not working with search page
- Advanced Meta Query for Large Calendar Website (12k+ posts) (175k+ wp_postmeta rows)
- Display PHP within HTML values
- WP_Query adds “(wp_posts.ID = ‘0’)” so no results are returned
- Add more button if more 8 items
- How to store post ID’s in cookie or session to display the same posts later
- Unable to write multiple values back to ACF user field – PHP
- Update grandchild repeater field with value per row
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- auto-populating custom nav with all items from custom post type
- Stuck in the query loop
- Sort by page information by Ascending Numbers
- WordPress theme options error
- Get posts from multiple post type
- WP_Query fails despite having 1 post
- wp_query get the 2nd post
- Download PDF after CF7 form submission
- How to add div blocks after certain set of post
- Upload non-featured image to image field
- the_posts_pagination() not working in wpquery
- HTML Special Characters in URL string [closed]
- WP_Query: getting posts where custom field exists
- Convert a string into a decimal number for use in query
- Accessing values from ACF sub field (flexible content area) in PHP
- Creating an image from a custom field
- Increment paged on WP_Query
- Hide posts if user is added to it WP_query
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- Custom route and query
- Getting posts to exclude from array
- Custom post type permalinks do not appear using the link functions
- Order BY Most Liked And Published Between Previous Week Monday And Next Week Monday
- Getting taxonomy category Image from ACF [closed]
- Modify main query before it run without pre_get_post
- array_rand not working correctly?
- WP_Query() load selected post
- How to extract information from a wp_query result?
- Modifying WP URL handing code?
- Display Post Title From Select Choice Loop in Advanced Custom Fields (ACF) – WordPress
- orderby meta_value_num is not working, giving default order
- How can I modify this code to make the search box include tags and meta
- Free search and custom taxonomy query not providing the same result
- How do I reset $wp_query in a function?
- Add class to all img if they have a certain ACF field
- WP_Query for woocommerce products with a pattern as a post_title
- How do I make these combination select filters work when only one dropdown is set? They work in WordPress 5.8.2 but don’t in 5.8.3
- Replace a single variable with add_filter
- meta_query search names when they have middle initials
- How to display acf field values from home page on all pages?
- Ajax filter with loadmore button
- Set ACF on order during checkout
- get_filtered_term_product_counts – Get product terms if any products
- Search for single post by 2 tags
- get_template_part() not working with Advanced Custom Fields plugin
- Multiple Arrays for Custom Post Query using Boostrap accordions and ACF repeater fields
- Query to show average # of months all accounts with specific role have been active
- Woocommerce Related Product by 2 taxonomy
- Query doesn’t display text data with apostrophes
- WooCommerce Custom Tab with ACF Repeater Field
- Querying posts from wordpress with 2 or more conditionals
- Display a single row from nested array of custom field data
- SQL Query Search page
- Can’t get data from audio media
- Display Year and Month from custom field + Age Calculator
- insert thumbnail image from php script
- Masonry layout within the loop
- ACF loop and php formatting
- Custom Post-type not returning the right child_of
- Custom field within shortcode
- ACF allow zero as a value
- Advanced custom fields Repeater conditional statement not working [closed]
- Fix incorrect related posts code snippet
- wp_query on search results page showing all results every time
- advanced custom fields: repeater field within conditional statement [closed]
- How to sort custom sortable column by custom table value
- /page/2/ redirect to 404
- How to use a conditional statement in a post loop but not count towards the “posts_per_page” if false