• Resolved moombanic

    (@moombanic)


    Hello,

    I’m trying to get a non formatted frdate for my template but whenever I try to call the function ajax completely breaks and i end up with a blank page.

    Trying to do $vehicle->frdate also returns nothing (no Date object as expected) BUT if I print_r($vehicle) I can clearly see the property set on the object.

    Awkwardly enough, doing get_formatted_frdate() works just fine. Same template exact same location.

    I just don’t understand what’s going on. Please help?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Barry Kooij

    (@barrykooij)

    Hey,

    You can’t access the frdate property directly because it’s private. Please try the get_frdate() method on the $vehicle object.

    Kind Regards,

    Barry Kooij

    • This reply was modified 6 years, 8 months ago by Barry Kooij.
    Thread Starter moombanic

    (@moombanic)

    Hi Barry,

    Thanks for your response, the get_frdate() didn’t work for me unfortunately.

    For what I needed, I managed to get a workaround by using an Advanced Custom Field (plugin) for anyone else in a similar position. Its a little extra work for clients inputting data but the only way I could output the date format needed.

    Thanks
    Nicola

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looking for unformatted Date – get_frdate() breaking ajax ??’ is closed to new replies.