• Resolved renanmaiaa

    (@renanmaiaa)


    I can not get the image(name – galeria_imagem_patro) you insert in my page, below the php

    <?php $image = get_field(‘galeria_imagem_patro’, $post_id); if( $image): $thumb = $image[‘url’]; ?>
    ” class=”thumb_285_350″ />
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • You are using wrong function to pull gallery image it should be:

    $images = acf_photo_gallery('galeria_imagem_patro', $post->ID);
     if( $image) ....

    IF we use get_field(‘galeria_imagem_patro’, $post_id); we get IDs of gallery images.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP Photo Gallery’ is closed to new replies.