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
- Add up all numbers from a WordPress query [closed]
- Display all values of custom a field created with ACF on a page
- If Custom Field is empty don’t display div
- WP_Query | Help me create a search term with an ‘OR’ relation?
- The values of custom fields are not available functions.php
- WP_Query use for a filter with multiple Taxonomies and Terms
- Duplicates with WP_Query loop
- 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?
- Get Current User Id Inside a Loop Returns 0 For a Shortcode
- Custom page archive query by url var calling page twice on one of my custom queries?
- Using Advanced Custom Fields to create a per page slider
- WP Query with custom Shortcode
- 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
- 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
- Advanced Custom Fields not displaying
- WP_Query fails despite having 1 post
- Create a Blog Template Page
- Exclude posts with specific metadata from search?
- Download PDF after CF7 form submission
- Display an image if odd number of posts in grid
- Why doesn’t PhotoSmash plugin play well with wp_query?
- WP_Query: getting posts where custom field exists
- How to show meta value code HTML after x paragraph
- get_the_ID() doesnt work
- Get ACF options field in PHP acting as CSS
- How can I count ACF sub_field with a certain value
- change the default order of posts only for specific categories
- Getting posts to exclude from array
- Problem with adding custom CSS class to image in ACF Photo Gallery plugin [closed]
- How can I split my query result in 2 arrays?
- How to get post category list as select in front-end?
- Advanced Custom Fields [closed]
- Order a WP_Query by meta value where the value is an array
- How do I check if there is a tag in the title
- Get All In One SEO Pack to use custom field instead of Content
- Using multiple variables to assign categories to an array
- Search.php gets metadata from first post
- the_post(); prints out style text into my HTML?
- WordPress Search Ajax + Isotope + InfiniteScroll
- 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
- Problems updating nested ACF field groups
- How to call my PHP function with AJAX ? wp_query
- Set ACF on order during checkout
- Query by pagename not Working
- Display featured image of post type category
- Delete post meta by serialized meta value
- Get field value and use as variable in php
- Getting info about selected posts using one WP_Query
- Multiple Arrays for Custom Post Query using Boostrap accordions and ACF repeater fields
- PHP/CSS: Shortcode won’t display correctly, and only displays in the head (before content)
- How can I copy an ACF field to AIOSEO field? [closed]
- Query to show average # of months all accounts with specific role have been active
- Make sticky post with FacetWP
- Query doesn’t display text data with apostrophes
- WooCommerce Custom Tab with ACF Repeater Field
- PHP for loop not working as intended
- How to return count of items found in SQL query
- SQL Query Search page
- Else if Statement for Advanced Custom Fields [closed]
- For each 3 posts, show a different post type
- Masonry layout within the loop
- Weird Behaviour: Not all WordPress Posts appearing
- Query category-specific, paginated posts and allow viewer to change sort order
- wordpress is_main_query() breaks
- allow previews outside wordpress folder (Outsourcing WP previews)
- get_category only returning details for ‘uncategorized’
- Advanced Taxonomy query, with 3 post types
- Why does a meta_query break this WP_Query?
- ACF Date fileds to Age Convert [closed]
- Advanced custom fields Repeater conditional statement not working [closed]
- Variable ++ in query loop
- How can I get values from a custom post type depending on where I click on my SVG map?
- a problem in class in class-wp-hook.php
- Count custom posts type and filter by tag
- AJAX WP_Query’s order and orderby parameters not working
- Add adjacent post function inside custom recent post function
- How do I exclude the current post from the upcoming post query
- Exclude first post from wp query
- How to create advanced custom fields for backend content
- Why does my custom slug only show in Gutenberg editor after page refresh?