Shortcode opens both in new tab and lightbox, do_shortcode() doesn’t work at all
-
I’m trying to use this to generate image links to various videos related to individual posts with a custom field.
If I create the shortcode manually and embed it in the post, it shows the image link. When I click on it, it opens the correct video in a new tab. I close that tab and the same video is open in a lightbox.
But what I need to do is use this in a template with the do_shortcode. I’ve tried various methods, but nothing at all is returned, no even an error. This is true even if I hardcode the shortcode with the correct values in the template.
Is there some reason the shortcode won’t work in a template with do_shortcode, and does it opening in a new tab suggest anything?
- The topic ‘Shortcode opens both in new tab and lightbox, do_shortcode() doesn’t work at all’ is closed to new replies.