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 css class ID to largest and smallest number a custom field in wp_query
- Add up all numbers from a WordPress query [closed]
- Display posts in correct month order using single date custom field
- Compare post-IDs within WP_Query? (Less than / Greater than)
- ACF: how do I get the fields and its values of a specific group?
- How to use $query->set with post__in?
- Saving an array of dynamic repeater data as post_meta
- Loading the same WP_Query in two different wordpress .php templates
- How to prevent WP_Query function from returning all posts when empty?
- Dynamic content based on a URL parameter
- Display a specific category of products in shop page and disable code for specific actions
- WP_Query adds “(wp_posts.ID = ‘0’)” so no results are returned
- Output ACF repeater on frontend user’s profile page (created with Ultimate Member) [closed]
- Remove the first 5 characters of the_title and orderby that
- Add more button if more 8 items
- How to store post ID’s in cookie or session to display the same posts later
- Unread Repeater field IMG alt not working
- Unable to write multiple values back to ACF user field – PHP
- Update grandchild repeater field with value per row
- WordPress, AJAX and pre_get_posts using conditional tags
- Get users that likes the post
- How to use thumbnail size of image if I’m only using src to get image
- Slick + PHP + ACF + JQuery slide reveal not working
- get_posts() and WP_query limits ‘AND’ conditions to a maximum of 6 for meta value queries in WordPress
- Exclude posts based on meta value
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- Custom query, checking values of multiple meta keys
- auto-populating custom nav with all items from custom post type
- inserting a post from an extern php file but post content doesn’t show on wp site
- Stuck in the query loop
- Remove echo from shortcode
- How Can I use WP_Query to Only Display 1 Post from Custom Post Type if Query Returns Posts with Matching ID in Custom Field
- Sort by page information by Ascending Numbers
- WordPress theme options error
- Redirect to another page using contact form 7? [closed]
- Security for data obtained from the database
- Fatal error: Call to a member function query() on a non-object
- Get posts from multiple post type
- Advanced Custom Fields – display label and value only if value entered
- Is it possible to retrieve all posts with a certain value for metadata?
- Advanced Custom Fields not displaying
- How to get all author posts outside of author templates
- WP_Query fails despite having 1 post
- Create a Blog Template Page
- unable to use ‘new WP_Query’ in AJAX call
- wp_query get the 2nd post
- Exclude posts with specific metadata from search?
- Download PDF after CF7 form submission
- How to get post ID in a Page?
- Display an image if odd number of posts in grid
- How to retrieve the data from the sever and displaying it in a page?
- How to create an ACF shortcode with Repeater Field in WordPress? [duplicate]
- How to add div blocks after certain set of post
- How to overwrite orderby with add_query_var
- Why doesn’t PhotoSmash plugin play well with wp_query?
- Upload non-featured image to image field
- get_the_ID() in the footer returns wrong value
- Trouble inputting variable into WP query
- the_posts_pagination() not working in wpquery
- HTML Special Characters in URL string [closed]
- ACF put a comma after the last repeater field value [closed]
- Show ACF field with link to ultimate member profile/WordPress user profile below the post (single post layout)
- How to override url params with rewrite rules vars?
- WP_Query: getting posts where custom field exists
- How to show meta value code HTML after x paragraph
- InnerBlocks with allowedBlocks not working with acf_register_block
- WP_Query | IF within $args array | Help me only add specific arguments if the argument is not blank
- Convert a string into a decimal number for use in query
- How to display SQL query that ran in WC_Order_Query?
- get_the_ID() doesnt work
- Accessing values from ACF sub field (flexible content area) in PHP
- Creating an image from a custom field
- Array to string conversion on array_map
- Store metakey value as an array
- Increment paged on WP_Query
- Target post_date_gmt if it’s empty or not set
- Can I set up a hover animation in CSS depending on a PHP conditional?
- Get ACF options field in PHP acting as CSS
- Hide posts if user is added to it WP_query
- ACF & Bootstrap Gallery Shows Blank Slides [closed]
- Conditional multidimensional arrays and array_map
- ACF Repeater Pagination stopped working since upgrade to php7.2
- How can I count ACF sub_field with a certain value
- Custom route and query
- change the default order of posts only for specific categories
- Getting posts to exclude from array
- Get all posts as an array ID => Name
- How to hide posts of a specific custom category in WordPress?
- How to insert wp_users ->user login name to wp_terms when a new user registering?
- what is the method to echo class attribute inside the i tag? [closed]
- Post not populating for custom post type based on category selection