Title: [Plugin: Simple Fields] order post with custom field
Last modified: August 19, 2016

---

# [Plugin: Simple Fields] order post with custom field

 *  [eliawk](https://wordpress.org/support/users/eliawk/)
 * (@eliawk)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-fields-order-post-with-custom-field/)
 * hi,
    your plugin is great! i need to order post using the value in some custom
   field. is it possible or i could acces the value only in the loop? this is the
   code i use: $custom_field = …. ;
 * $args=array(
    ‘post_type’ => ‘my_post’, ‘caller_get_posts’=>1, ‘paged’=>$paged,‘
   orderby’=>$custom_field, ‘order’ => ‘ASC’ ); query_posts($args);
 * thanks
 * [http://wordpress.org/extend/plugins/simple-fields/](http://wordpress.org/extend/plugins/simple-fields/)

The topic ‘[Plugin: Simple Fields] order post with custom field’ is closed to new
replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-fields_fafafa.svg)
 * [Simple Fields](https://wordpress.org/plugins/simple-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-fields/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [eliawk](https://wordpress.org/support/users/eliawk/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/plugin-simple-fields-order-post-with-custom-field/)
 * Status: not resolved