WordPress.org

Ready to get started?Download WordPress

Forums

Post Types Order
[resolved] Orderby meta_value (4 posts)

  1. Tiago ADPS
    Member
    Posted 8 months ago #

    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/

  2. nsp-code
    Member
    Plugin Author

    Posted 8 months ago #

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

  3. Tiago ADPS
    Member
    Posted 8 months ago #

    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.

  4. Tiago ADPS
    Member
    Posted 8 months ago #

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

Reply

You must log in to post.

About this Plugin

About this Topic