• Resolved m3ndi3

    (@m3ndi3)


    I have a custom field (#ATT_{key}) that outputs a date in this format: 1386374400

    I tried using the #F#j#Y#H placeholder, but no luck (it just outputs the event date) …

    How do I get my custom field to display the correct date format (F j, Y H:i) in the Event List? Any help would be greatly appreciated!

    https://www.ads-software.com/plugins/events-manager/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support angelo_nwl

    (@angelo_nwl)

    did you try the date placeholder instead ? https://wp-events-plugin.com/documentation/placeholders/ (please see Date and Times section)

    Thread Starter m3ndi3

    (@m3ndi3)

    Yes I did, but it was giving me the date for the event and not my custom field.

    Plugin Support angelo_nwl

    (@angelo_nwl)

    tried this format #F#j#Y#H at Events > Settings > Formatting > Events and it worked for me.

    Thread Starter m3ndi3

    (@m3ndi3)

    Yes I know this works for me too, but for the event date, not my custom field which I use the #ATT_{custom_field}

    caimin_nwl

    (@caimin_nwl)

    I think the problem could be that the datestamp is being treated as a string, rather than a number. Can you post the code you’re using? Thanks.

    Thread Starter m3ndi3

    (@m3ndi3)

    “I have a custom field (#ATT_{key}) that outputs a date in this format: 1386374400”

    Philip John

    (@philipjohn)

    That will defintely be treated as a string. You’ll need to convert it to an integer in order to use it as a timestamp.

    Thanks

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Custom attribute with custom date’ is closed to new replies.