Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #23043

    Hi there,

    Firstly, thanks for a great photography theme!

    In the the Caption Text box for the images in the Gallery Options of my portfolio item, I’d like to insert shortcode for a button that links my gallery image to the related product in my store (and also some social media buttons). At the moment, inserting the shortcode just shows the shortcode and not the button. Is it possible to do this?




    I didn’t test it but you can the do_shortcode() function:

    Open up wp-contentthemesflashlightincludeshelper-slideshow.php and replace all occurrences of:

    if($exif['description']) $output .= "<div class='description'>".$exif['description'][1]."</div>";


    if($exif['description']) $output .= "<div class='description'>".do_shortcode($exif['description'][1])."</div>";


    Thanks for getting back to me. Worked perfectly!



    Great :)

    Best regards,


Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Flashlight – Shortcode in the Caption Text’ is closed to new replies.