treehouse : what would you like to learn today?
Web Design Web Development iOS Development

custom fields as dates

  • Is this possible?

    currently i have a custom field which the user can enter a date into and it will display on the website, but what I would like to do now is to make it so that if today's date is after the date the user entered on the website it would print "date passed" or something like that.

    I have a way to compare the dates but unfortunately in order for that to work I need the date value in the custom field to be recognized as a date by PHP

    thanks
  • i have figured out a solution to it.

    rather than using the wordpress custom fields like I had been, i looked for another module to do it with. I found Pods. which works amazingly well and does exactly what I was after.

    Pods is abit like the Flutter module, but alot better I think, you can define your own content types which you can add any fields you want to.
  • Yea, I have heard some good things about Pods, though I haven't used it yet. Will have to check it out.