• 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/

Viewing 1 replies (of 1 total)
  • Brook

    (@brook-tribe)

    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.