Support » Plugin: Simple Share Buttons Adder » Facebook doesn’t work on Index.php for manually added sharer

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Simple Share

    (@davidoffneal)

    @michael-divine If you’re going to add the buttons manually to a custom loop you have to make sure to provide the “url” and “title” attributes to the shortcode:

    [ssba-buttons url=”url” title=”title”]

    Depending on your loop the php would look roughly like this:

    <?php
    $url = the_permalink();
    $title = the_title();

    echo do_shortcode( ‘[ssba-buttons url=”‘ . $url . ‘” title=”‘ . $title . ‘”]’ );
    ?>

    Let me know if this helps. Thanks!

    Plugin Author Simple Share

    (@davidoffneal)

    Please feel free to reach out for any other concerns.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Facebook doesn’t work on Index.php for manually added sharer’ is closed to new replies.