How can you create a link to the first attachment (gallery item) of a wordpress post?

by Barry Chapman   Last Updated July 19, 2019 19:08 PM

I am using ACF, and I am not sure if using that is the right approach to this.

I am also using Elementor, and when creating the repeatable object I am using, I want to embed a 'link' or something to the first gallery item of that post type.

Is that possible? I am not even sure how to approach this. Basically, I need kind of a pseudo field that I can reference to point to the first attachment of this post.



Related Questions



Get media's parent post ID (ACF)

Updated June 06, 2017 06:08 AM

ACF attachment custom field in rest response

Updated January 21, 2019 23:08 PM