Home » Php » php – How to trigger an image gallery from Advanced Custom Fields via pop-up

php – How to trigger an image gallery from Advanced Custom Fields via pop-up

Posted by: admin February 25, 2020 Leave a comment

Questions:

I have “Search and Filter Pro” installed, as well as the “Custom Fields” plugin (in WordPress). Currently working on the results.php file of Search and Filter Pro in my child theme.

I’d like to trigger a pop-up when the user clicks on an image (camera-icon.png). The image gallery lives in ACF. The name is: “photo_gallery_testimonials”.

<a href="<?php the_field(photo_gallery_testimonials); ?>"><img src="/wp-content/uploads/2020/02/camera-icon.png"/></a>

Can anybody help me out with this?

How to&Answers: