Import audio file

Closed

Import WP Pro Updated 1 year ago 10 Replies

Associazione asked 1 year ago on December 10, 2023 at 4:42 pm

Hi,

I’m trying to import via csv and ACF field an audio file for each post. I would then need to have the URL of the audio file for the automatic audio player as a return value. I tried all the possible choices in the dedicated menu, as you can see from the screenshot, but it doesn’t work. How can I solve it? Thanks

J

James replied Support Agent

1 year ago on December 10, 2023 at 9:13 pm

Hi Associazione,

Can you re-attach your screenshot as the file is missing from the ticket.

Can you also export and attach you acf field group?

Thanks
James

AB

Associazione replied

1 year ago on December 10, 2023 at 9:17 pm

Hi James

Here it is. Thanks

Stefano

J

James replied Support Agent

1 year ago on December 10, 2023 at 9:23 pm

Can you attach the screenshot?

Can you also please export and attach your importer settings to this ticket by going to Tools > Import WP > Settings / Tools > Import / Export and select and export your importer as a JSON file.

AB

Associazione replied

1 year ago on December 11, 2023 at 11:29 am

AB

Associazione replied

1 year ago on December 11, 2023 at 11:31 am

I don't know why every time I upload the screenshot it doesn't get attached... I tried every way... nothing... when I attach an image and send, the attachment is not visible...
J

James replied privately Support Agent

1 year ago on December 11, 2023 at 11:57 am

J

James replied Support Agent

1 year ago on December 11, 2023 at 12:15 pm

J

James replied Support Agent

1 year ago on December 11, 2023 at 12:34 pm

If you set the return value to either empty by clicking the cross, or setting it to attachment ID - single record, then the file will be imported into the acf field.

The value for this return field is not the value when fetched via get_field or the_field, instead this is what is passed to acf to save the field.

AB

Associazione replied

1 year ago on December 11, 2023 at 2:00 pm

Thank you for your patience James.

So How can I get the URL of the audio file to automatically insert it into an audio player?

I know this is not the responsibility of the plugin's technical support.

Feel free not to respond.

Thanks

J

James replied Support Agent

1 year ago on December 11, 2023 at 2:18 pm

With your previous acf field group you can get the url with:  get_field('audio_file'); since your return value in acf is set to url.