Grow your CSS skills. Land your dream job.

Sort issue on date field

  • # March 17, 2011 at 4:17 pm

    I’m sorting WordPress posts for a specific category by a custom date field in the format YYYY-MM-DD using the following:

    orderby=meta_value&meta_key=event-date&order=ASC

    A problem example is with two event days and one having the day of the month being 10 and the other having the day of the month being 03.

    The event with the day of the month being 10 shows up first when it should be after.

    Any way around this?

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".