Support » Fixing WordPress » How do I sort by a custom field "event_date" in the WordPress calendar widget?

  • Joey

    (@joeythesquid)


    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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Try using an event manager plugin instead.

    Thread Starter Joey

    (@joeythesquid)

    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. :-/

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How do I sort by a custom field "event_date" in the WordPress calendar widget?’ is closed to new replies.