Title: Custom Posts : sort by and custom fields
Last modified: November 4, 2016

---

# Custom Posts : sort by and custom fields

 *  [phirefly](https://wordpress.org/support/users/phirefly/)
 * (@phirefly)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-posts-sort-by-and-custom-fields/)
 * Hello,
 * I am using [https://theeventscalendar.com](https://theeventscalendar.com) and
   interested to know if it is possible to do the following;
 * 1. ‘sort by’ based on a custom field (in my case the Event Date)
    2. display 
   custom data (in my case the Event Date and Time)
 * Many Thanks

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tom](https://wordpress.org/support/users/edge22/)
 * (@edge22)
 * [9 years, 6 months ago](https://wordpress.org/support/topic/custom-posts-sort-by-and-custom-fields/#post-8399633)
 * I would have to look into it to see if WordPress allows custom parameters in 
   the orderby argument. As far as I know it’s only possible to use the built in
   arguments.
 * For the custom fields (data), this might help: [https://wpshowposts.com/support/topic/custom-fields/](https://wpshowposts.com/support/topic/custom-fields/)

Viewing 1 replies (of 1 total)

The topic ‘Custom Posts : sort by and custom fields’ is closed to new replies.

 * ![](https://ps.w.org/wp-show-posts/assets/icon-256x256.png?rev=2846296)
 * [WP Show Posts](https://wordpress.org/plugins/wp-show-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-show-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-show-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-show-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-show-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-show-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tom](https://wordpress.org/support/users/edge22/)
 * Last activity: [9 years, 6 months ago](https://wordpress.org/support/topic/custom-posts-sort-by-and-custom-fields/#post-8399633)
 * Status: not resolved