bonny / WordPress-Simple-Fields

WordPress plugin that extend Custom Fields to include textareas, WYSIWYG-editor, files, attachments, well basically anything
http://wordpress.org/extend/plugins/simple-fields/
88 stars 23 forks source link

option to sort by field slug using wp_query #39

Closed bonny closed 11 years ago

bonny commented 12 years ago

like:

$query_smakmatare = new WP_Query(array(
    'post_type' => 'page',
    "orderby" => "simple_fields", // or simple_fields_num
    "meta_key" => "my_slug",
    "order" => "ASC"
));
bonny commented 11 years ago

hm, I think this was done in version 1.3.3: http://simple-fields.com/2013/wp_query-and-sort-posts-using-simple-fields/