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


    @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:

    $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


    Please feel free to reach out for any other concerns.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.