In a wordpress page I have a list of posts, each one links to a Bootstrap Modal where I want to load the post content.
This is my PHP function (inside a custom plugin).
Gets the post ID and return content.
This is my JS conde.
Gets AJAX response and put it inside the modal.
The posts are made with WPBakery and includes a carouser [vc_images_carousel] but the modal shows all the images, not a carousel.
I assume I need to run some JS to “build” the carousel but I don’t know how.
You can see the page here http://puchetaconstrucciones.com.ar/obras-2/