Support

Account

Home Forums Pre-purchase Questions Can we use 1 date and format is different ways with the shortcode?

Helping

Can we use 1 date and format is different ways with the shortcode?

  • We were thinkning about purchaing and implementing, but I cant find any information on things like ability to format dates differently using the shortcode. We display dates multiple formats throughout out site, and we want a way to do that with the shortcode. Is that something what works.?

    Example date time 09/12/2021 11:59 pm displayed
    Sunday
    Sunday September 12, 2021
    09/12/2021 11:50pm
    Can we use 1 date and format is different ways with the shortcode?

  • There is nothing built into ACF that will allow formatting dates in different ways.

    1. You would need to build your own shortcodes, one for each format, or one with an attribute to specify format
    2. You would need to set the ACF format to something that the shortcodes can use
    3. You would need to get the field in the shortcode and format it
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.