Home › Forums › Add-ons › Repeater Field › Repeater field for Sidebar Page Links › Reply To: Repeater field for Sidebar Page Links
What you’re looking to do is quite complex.
First of all, it is not possible to directly order posts by a term. What you need to do is to get all of the terms, loop through the terms and get all of the posts in each term based on the list of links on the page.
That’s
get categories
each category
get posts using "post__in" query where the post_in value is derived from the list of links
if there are posts in the category
get the category image and display
each post
show link
helpful links https://wordpress.stackexchange.com/questions/142268/order-posts-by-category-name, https://www.google.com/search?q=order+posts+by+category&oq=order+posts+by+category
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!
📣 “ACF Chat Fridays”
— Advanced Custom Fields (@wp_acf) January 31, 2023
The ACF team holds their first open office hours this Friday! Come and talk ACF, and ask questions about building sites with the plugin.
We’d love to see you there!
📆 Friday 3rd Feb - 3pm UTC
👉 Register here - https://t.co/3UtvQbE4CU pic.twitter.com/oTwW9K1XQ0
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.