Grow your CSS skills. Land your dream job.

custom fields as dates

  • # April 19, 2010 at 9:52 pm

    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

    # April 20, 2010 at 2:47 am

    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.

    # April 20, 2010 at 1:35 pm

    Yea, I have heard some good things about Pods, though I haven’t used it yet. Will have to check it out.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

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