Support

Account

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

  • Hi @Pyromania666

    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