Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #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?

    Thanks,

    Gerry.

    #118344

    I didn’t test it but you can the do_shortcode() function: http://codex.wordpress.org/Function_Reference/do_shortcode

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

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

    with

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

    #118345

    Thanks for getting back to me. Worked perfectly!

    #118346

    Hey!

    Great :)

    Best regards,

    Peter

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

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