Support » Plugin: Post Types Order » Orderby meta_value

  • Resolved Tiago ADPS

    (@tiago-adps)


    Hello all,

    I have a page that calls and orders posts by its meta_value.
    Like so:
    query_posts(‘cat=3&meta_key=data&order=desc&orderby=meta_value’);

    Works fine until I activate this plugin and use it to reorder posts.
    After that, that line of code still calls all the posts from cat 3 that have a meta key called “data”, but it does not order them by their value.

    Is there a way to have both plugin and “orderby=meta_value” fully working?

    Thank you in advance

    http://wordpress.org/plugins/post-types-order/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author nsp-code

    (@nsp-code)

    Hi, You should turn OFF the autosort and use ‘orderby’ => ‘menu_order’ within queries where custom sort need to apply.

    Hello,

    Thank you for the response!
    But I don’t fully understand. What do you mean by turning off the autosort?

    And sorry for taking so long to to answer back.

    Oh, in the settings of course!
    I’ll give it a try

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Orderby meta_value’ is closed to new replies.