Support » Plugin: ACF Photo Gallery Field » Using the plugin

  • Resolved nathanhornby


    The docs are a little light on instruction.

    Firstly, the field seems to return a comma-separated string of the images (ids?) – making it difficult to loop through – I would have expected an array?

    Secondly the alternative commands don’t seem to work, i.e. appending ‘_url’ onto the field name doesn’t return anything.

    Are there any working examples of how to use the plugin?


Viewing 1 replies (of 1 total)
  • Do not use ACF’s default get_field() function instead use
    $images = acf_photo_gallery('gallery_images', $post->ID);
    It will give array of images. We can view what we actually get by var_dump($images );

Viewing 1 replies (of 1 total)
  • The topic ‘Using the plugin’ is closed to new replies.