Dynamic pull up of the CSV API File Source

Hi,

I started to experiment with CSV API in Cornerstone. The source CSV files will be uploaded to the WordPress Media Library in my scenario. I need to add file links to an ACF field for dynamic use in the Looper Provider, simplifying the process for site editors.

It seams like it doesn’t work with the simple file link. When you add a reference to the file inside CornerStone, it fills in something very specific. Where does the red-marked reference in the attached image come from? Can the site editor access it without selecting the file directly in Looper Provider through the WP Media Library?

Can I easily connect an uploaded CSV file to the CSV API Looper Provider using an ACF field?

The number you see is an attachment ID.
I would double check the ACF field is returning an ID or a URL. Try outputting the ACF field in a text element. Using the Dynamic Content button you should be able to select an ACF field and put it in the CSV Looper Provider field.

If you’re still running into issues try using the External API’s CSV type.

Let us know if that helps and have a great day.

1 Like