Home › Forums › Add-ons › Repeater Field › Single taxonomy pages, sorted by Repeater/Post Object › Reply To: Single taxonomy pages, sorted by Repeater/Post Object
Is every post represented in the repeater?
You could create pre_get_posts filter in WP https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts. In this filter loop through the repeater, get all the post ID’s in the order that they should be displayed. Then alter the query to main query to include the ‘post__in’ argument with the array of post IDs and set the orderby argument to ‘post__in’. https://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.