We’re using the Enfold WordPress theme to redo an old website of ours.
One of the features of our older website was to show images in a gallery format based on the product.
We made a template using the avia page builder and set up a custom regex route in wordpress that allows users to view this page using the following url template:
/product/{model_number}
The model number is then parsed out in php and used in our custom wordpress plugin to query and load all model data for that specific model.
We currently have made a custom plugin that initializes a number of custom shortcodes that call the do_shortcode() function on a number of avia shortcodes that we generate on the fly (for titles, tabs, buttons, etc)
However, our issue arises when we try to generate a masonry gallery for images of our models. It appears that the avia shortcode for the gallery only accepts a list of uploaded image id’s. This is unlike the normal avia “image” shortcodes that can accept an image id, or an image url.
Basically, we are wondering if we can use a list of image url’s in the masonry gallery shortcode so we can auto-generate it on the fly using a list of known model images that are not uploaded through wordpress.
This isn’t a publicly facing website (yet!) but I can get more info about our setup if you need it.
Hey fweco!
It would take quite a bit of changes to the masonry_gallery.php and helper-masonry.php files in the /enfold/config-templatebuilder/avia-shortcodes/ folder.
It would have to be considered custom work and would probably be best if you hired a freelancer to help you out with this customization.
Cheers!
Elliott
Alright, thanks for the reply!