Home › Forums › Add-ons › Gallery Field › Add unique ID to gallery field, so it can be used as a separate post › Reply To: Add unique ID to gallery field, so it can be used as a separate post
Can you please post a snippet of your code which is used to make the gallery?
Am I right in assuming this piece of code is within a loop which is rendering many posts on 1 page?
There should be no need for a ‘unique ID’ for each gallery, the get_field function can load from multiple posts on 1 page. Perhaps the $post object is not correctly setup in your loop?
Thanks
E
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
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 Privacy Policy. If you continue to use this site, you consent to our use of cookies.