Support

Account

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