Return meta_value ACF Date field

Pending

Import WP Pro Updated 2 weeks ago 1 Reply

Evelien asked 3 weeks ago on March 6, 2026 at 11:16 am

Hi,

Can you help me to return for an ACF data field the mate_value insteadd of the return format given in the ACF field settings. Do you have an export custom field php snippet for me to figure this out? For example it returns now for the export:

<Repeater_Programma>

    <Repeater_Startdatum>

        <![CDATA[ 17 maart 2026 ]]>

     </Repeater_Startdatum>

But I want (or similar):

<Repeater_Programma>

    <Repeater_Startdatum>

        <![CDATA[ 20260317 ]]>

     </Repeater_Startdatum>

The reason is that is not being imported correctly.

With thanks,

Demian

J

James replied Support Agent

2 weeks ago on March 10, 2026 at 10:08 pm

Hi Demian,

I have tested this locally, and each time i do i get the value from an acf date field in the format of: 20260317 as this is how its stored in tbe db for both the acf value and the custom field value

Are you able to export your acf field group?

James