Support » Fixing WordPress » Configuring custom field info to display by date

  • I’m trying to display a list of upcoming events, ordered by event date. I’m using a custom field on each post called ‘expiration’, with values similar to ’02/07′ and ’03/13′. What I have now gets me the posts I want, but orders them by the last digits, like this:
    02/18
    03/13
    02/07

    here’s the code I have at the moment:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    It seems the orderby=meta_value_num doesn’t know that the values are dates. How can I fix this without making the custom field entry complex for the poster?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Configuring custom field info to display by date’ is closed to new replies.