• Resolved phil2016

    (@phil2016)


    Hello,
    I am using advanced custom fields in my WP Site, and the adv custom fields add-on.

    My site promotes book deals, and I use custom fields to display:
    start date of deal
    end date of deal

    And if it is unknown, I make it a one-day deal. So both dates are today (start Feb 19th 2021, end Feb 19th 2021).

    If I import books and leave these fields empty, they default to Jan 1st 1970.

    What can I do to make these date fields display today’s date (the day of the import) or any other date?

    Is there some php I could add?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author WP All Import

    (@wpallimport)

    Hi @phil2016,

    What can I do to make these date fields display today’s date (the day of the import) or any other date?

    I see that we answered you via our website support form already.

    In case anyone else is interested, you can import “today” (without quotes) into the ACF date field (if using the ACF Add-On) to import todays date.

    You can also use a PHP function in the field to generate a date: https://www.wpallimport.com/documentation/developers/custom-code/inline-php/.

    Thread Starter phil2016

    (@phil2016)

    Hello,
    thank you for your reply.

    Yes, you did answer my support request, but your reply wasn’t very helpful. I asked the same question via support but your answer was:

    “If you’re wanting to import today’s date, your file could provide “today” (without quotes) as a value. Otherwise, your file could provide the desired date.”

    Which, quite honestly, I thought was a joke. Because I asked how to put ‘today’s date’, which means, how do I ensure that the current day’s date appears. And you answer, that I should add the word ‘today’. Which is not what I asked.

    Or you suggest I add the current day’s date to the imported file. If that was possible then I wouldn’t have to ask how to do it with the plugin.

    So, I have been asking developers the same question, to try and solve this problem, because your support couldn’t answer it.

    But now you answer here and give a different answer. Unfortunately, it ALSO is not helping me.

    The link you give is to a page which DOES NOT tell me how to ensure the current day’s date (today’s date) will appear.

    I am not a php developer. I do not know how to do this with pho. I was asking you how. And now I have written to you for a third time asking the same question, perhaps this time you can simply provide me the line of code I need to add to the fields to get the current day’s date and we can move on.

    I really don’t understand why it’s so difficult to answer properly.
    This is how you get bad reviews for a great plugin!

    Plugin Author WP All Import

    (@wpallimport)

    Hi @phil2016,

    Which, quite honestly, I thought was a joke. Because I asked how to put ‘today’s date’, which means, how do I ensure that the current day’s date appears. And you answer, that I should add the word ‘today’. Which is not what I asked.

    My apologies for the confusion. The word “today” is not what will be imported as the date if you’re importing into an ACF date picker field via our ACF Add-On. The word “today” will be convert to today’s date, e.g. “2020-03-06”. See: https://d.pr/i/FQflmu.

    Another way to generate today’s date would be this function:

    [date("Y-m-d")]

    Does this clear up the confusion?

    Thread Starter phil2016

    (@phil2016)

    Hello @wpallimport

    yes, it does clear up the matter, but over a week late.

    I run an online business also, and no customer ever has to wait more than 6-12 hours for a reply.

    In fact, after giving up on getting either a prompt or helpful reply from you either here or elsewhere, I turned to Upwork and paid someone to help.

    So, yes, the [date(“Y-m-d”)] is the solution I am using, but have been using it for at least a week now, before you found time in your busy schedule.

    In case you’re also considering getting around to any of my other support requests, don’t bother, the developer I paid has answered them all.

    Like I said before, it’s a great plugin but the documentation and support are appalling. Some of the worst I’ve experienced.

    You take weeks to reply — and your video tutorials are years old (some as old as 10 years). At the price you charge for your plugin you could at least show a little respect for your paying customers by providing up to date ‘help’. But it’s clear you don’t care.

    Shame on you.

    • This reply was modified 3 years, 8 months ago by phil2016.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Set today’s date in custom field?’ is closed to new replies.