Title: Ordering events by start date/time using &#039;display posts&#039; shortcode?
Last modified: August 30, 2016

---

# Ordering events by start date/time using 'display posts' shortcode?

 *  [clayduda](https://wordpress.org/support/users/clayduda/)
 * (@clayduda)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/ordering-events-by-start-datetime-using-display-posts-shortcode/)
 * I’m trying to create my own little custom widget using WordPress’ Display Posts
   shortcode since there aren’t very many options through Events Calendar widget.
   The goal is to have the widget display one event post tagged “featured” with 
   an event start date of today’s date. (Today is August 3, so it would display 
   one event which starts August 3 and is also tagged as “featured”)
 * Here is what I have so far:
 * [display-posts post_type=”tribe_events” wrapper=”div” tag=”advanced” orderby=”
   date-start” image_size=”large” include_excerpt=”true” posts_per_page=”1″]
 * It pulls the post type, but it does not recognize “orderby” value (I have also
   tried “dtstart”). Sorry if this is a stupid question. My knowledge of PHP is 
   pretty much nonexistent, so if the solution involves adding a PHP snippet or 
   something please be as specific as possible. Or if there is another, less painful,
   way to do this I am all ears.
 * [https://wordpress.org/plugins/the-events-calendar/](https://wordpress.org/plugins/the-events-calendar/)

Viewing 1 replies (of 1 total)

 *  [Brook](https://wordpress.org/support/users/brook-tribe/)
 * (@brook-tribe)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/ordering-events-by-start-datetime-using-display-posts-shortcode/#post-6394699)
 * Howdy clayduda,
 * I would love to help you with that. Using the orderby “event_date” **might** 
   work. If it doesn’t you probably need to know PHP to get this working though.
   You will need to write an integration between Display Posts and The Events Calendar,
   which is not easy to due without a goodly bit of PHP knowledge. 🙁
 * I hope that works. Cheers!
    – Brook

Viewing 1 replies (of 1 total)

The topic ‘Ordering events by start date/time using 'display posts' shortcode?’ 
is closed to new replies.

 * ![](https://ps.w.org/the-events-calendar/assets/icon-256x256.gif?rev=2516440)
 * [The Events Calendar](https://wordpress.org/plugins/the-events-calendar/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-events-calendar/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-events-calendar/)
 * [Active Topics](https://wordpress.org/support/plugin/the-events-calendar/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-events-calendar/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-events-calendar/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Brook](https://wordpress.org/support/users/brook-tribe/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/ordering-events-by-start-datetime-using-display-posts-shortcode/#post-6394699)
 * Status: not resolved