• Resolved Kimberly

    (@_kimberly_)


    to enable facebook comments, I need to echo the current attachment media URL in data-href from Facebook in layout.html (is now layout.php) but is there a shortcode or other way to echo current media URL?

    <div class="slb_data_desc">
    {{item.description}}
    <div class="fb-comments" data-href="{{item.url}}" data-width="571" data-numposts="5"></div>				
    </div>
    • This topic was modified 8 years, 2 months ago by Kimberly.
    • This topic was modified 8 years, 2 months ago by Kimberly.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter Kimberly

    (@_kimberly_)

    {{item.url}} don’t work
    wp_get_attachment_url don’t work
    $_SERVER[HTTP] whatever don’t work

    Plugin Author Archetyped

    (@archetyped)

    Hi, the dynamic nature of SLB’s template tags means that they do not output data in plain text, but rather as DOM elements. As a result, a template tag cannot be added as an attribute of another DOM element.

    More output options for template tags are planned in a future update.

    Thread Starter Kimberly

    (@_kimberly_)

    maybe you can tell me when you add {{item.url}}?
    I need the visitors to stay on my site instead of leaving and comment on facebook!

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    ?????? Advisor and Activist

    @_kimberly_ – Please try to be more patient.

    I’ve deleted your duplicate posts and your bumping threads. They aren’t helpful to anyone.

    The plugin developer will add that feature in when they feel they can. I recommend waiting for an update and then reading the changelog: https://www.ads-software.com/plugins/simple-lightbox/changelog/

    Thread Starter Kimberly

    (@_kimberly_)

    What is the code to get URL?? I see problem solved but no answer

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘echo URL in lightbox’ is closed to new replies.