How do I sort by a custom field "event_date" in the WordPress calendar widget? (3 posts)

  1. Joey
    Posted 2 years ago #

    I'm using "Advanced Custom Fields" along with "Custom Post Type UI" to create events on my site. Everything works fine and the templates are in place however I can't get the posts to display properly in the default calendar widget.

    At the moment the posts are filtered by publishing date. However, for my purposes, I need them shown by the date of the event itself – not the day I created the post. I've already got a custom field called "event_date" that's stored in yymmdd format. With that said, is there a way to overwrite the default behavior of the calendar widget to sort by this field?

    If not is there a plugin that might help me accomplish this?

  2. esmi
    Forum Moderator
    Posted 2 years ago #

    Try using an event manager plugin instead.

  3. Joey
    Posted 2 years ago #

    I've tried a few but they're overkill for my needs. We don't have venues, repeating events, start and stop times, or anything like that. We've basically got a title, a photo, a date, and a link to buy tickets. That's it. Putting that together using custom posts and fields allows me to build a solution that's streamlined to meet the specific needs of the client.

    Only thing I can't figure out, is how to is integrate it into the calendar widget. :-/

Topic Closed

This topic has been closed to new replies.

About this Topic