• Resolved fsade

    (@fsade)


    Hi guys,

    I also use the plugin “Post Types Order” and sort the posts for a special order. This Plugin generates a menu_order column in database which is filled with the ordernumber. (I checked that)

    When I activate this, everything works as expected – but “recent Posts” on my WP home is also ordered by menu_order and NOT by recent posts.

    So I read in docu for “Post Types Order” plugin, that automatic sort can be disabled – if only some parts should use that sort.

    And I read in docu of your plugin, that orderby=menu_order could be chosen as additional sorting criteria.

    Doing that, I see the recently publishes posts on my home page (what I desired), but orderby=menu_order did not work on my category page, where I used that in that way:

    Chapter 1

    [display-posts category=”mainchapterA” tag=”chapter1″ orderby=”menu_order”]

    Chapter 2

    [display-posts category=”mainchapterA” tag=”chapter2″ orderby=”menu_order”]

    The order inside the chapters was according to publish date and not the intended manual given order.

    This moment I enabled automatic sort in Plugin “Post Types Order” because my category page is more important than the overview of recent published posts on my Home page.

    Why is orderby=menu_order not working or did I missunderstand something?

    Frank

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Bill Erickson

    (@billerickson)

    I looked at that plugin’s documentation and it looks like you might also need to add the order=”ASC” to the query as well.

    Does that fix it? If not, have you added any code to your site to customize Display Posts? It’s possible that a code snippet is overriding the shortcode settings.

    Thread Starter fsade

    (@fsade)

    Hi Bill, thanks a lot. order=”ASC” did the job.

    As a developer who is writing SQL statements all the day I assumed that order=”ASC” would be the default. So I was wrong and learned something new ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘orderby menu_order not working’ is closed to new replies.