Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Mat Lipe

    (@mat-lipe)

    Hi Tommy,

    What if you add a ,menn_order to the orderby clause.
    like so:
    $clauses[‘orderby’] = “GROUP_CONCAT({$wpdb->terms}.name ORDER BY name, menu_order ASC) “;

    instead of
    $clauses[‘orderby’] = “GROUP_CONCAT({$wpdb->terms}.name ORDER BY name ASC) “;

    I have not tested this, (it’s all a bit too hacky for my taste). I prefer retrieving the terms then retrieving the links per term instead of hacking the loop query. It makes it much easier to understand what is going on and allows for filtering etc.

    Hope this helps!

    Thread Starter tommysqueaker

    (@tommysqueaker)

    Thanks so much for getting back so quickly, Mat. I’m away from my workstation for a couple of days now but will have a go at that when I get back. It does feel like a better solution would be to start from scratch and query the terms and links within and then display them as needed but that’s more work than I’d originally estimated so would need a renegotiation. I’ll let you know how it goes!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Ordering links within link categories on customised loop’ is closed to new replies.