Viewing 1 replies (of 1 total)
  • Plugin Author Eliot Akira

    (@miyarakira)

    Hello,

    It looks like the code above should work as you described, to order posts by value in a field called “menu-order”. The orderby parameter will order by custom field if you pass anything other than the predefined values – id, date, title, rand, etc.

    Or, maybe you need to order by “menu_order” – which is not a custom field, but a predefined value provided by WordPress for ordering by “page order” (Order field in the Edit Page Attributes box). In that case, you can use “menu_order”. Please note the _underscore_. There’s also a shorthand for it: orderby=menu

Viewing 1 replies (of 1 total)
  • The topic ‘problem with loop and orderby "menu-order"’ is closed to new replies.