Gallery Target Option
With the Gallery extension you can target where to display your gallery.
The options are:
- Featured Image
- Gallery
Both of these options are referring to an action hook in your listing template file. These hooks are included in the default listing template file.
Featured Image
When you set the Target option to Featured Image to display the gallery, your template file must include the action hook epl_property_featured_image
in order to display gallery instead of the featured image.
If you are using a page builder like Elementor, Divi or one of the many other popular builders you can use the [listing_element] Shortcode to add the action hook to your template in the page builder. Use:
[listing_element type="action" action_key="epl_property_featured_image"]
If using PHP Use:
<?php do_action( 'epl_property_featured_image' ): ?>
Gallery
And when you select Gallery as the target your template must also include the epl_property_gallery
do action hook.
In your page builder use:
[listing_element type="action" action_key="epl_property_gallery"]
If using PHP Use:
<?php do_action( 'epl_property_gallery' ): ?>