Simple Share Buttons Adder
Share Buttons Not Sharing the Specific Post URL (6 posts)

  1. Howard Chan
    Posted 2 years ago #

    So I installed the plugin but for some reason when the share buttons are clicked, they only share the home page but not the specific post url.

    here's the link to the website: http://easysmallbusinesshr.com/

    As you can see, the home page is a feed page for the latest articles with the thumbnails and the post title. I already ticked the "Show on homepage" option but still not working. Any help will be much appreciated! Thanks!


  2. andy999
    Posted 2 years ago #

    Yup, same issue for me, it'd be perfect if it weren't for that.

  3. jmwebdesign
    Posted 2 years ago #

    Not sure if this will work, but have you tried selecting posts?

  4. skam1922
    Posted 2 years ago #

    Around Line 650 in simple-share-buttons-adder.php

    You're going to want to comment out these lines (add // before) under // get page name and url from functions:

    $urlCurrentPage = ssba_current_url();
    $strPageTitle = $_SERVER["SERVER_NAME"];

    and replace that with

    $urlCurrentPage = get_permalink($post->ID);
    $strPageTitle = get_the_title($post->ID);

  5. Gemini23
    Posted 2 years ago #

    I have a problem with the Facebook sharing.... as the image that is displayed with the share is incorrect.... although the url IS correct... I think it is picking up 'related posts images'.... any suggestions?

  6. atomicjdm
    Posted 1 year ago #

    Thank you for sharing a solution skam1922. The first update to the plugin will likely erase that modified code, however.

    Working on a more permanent solution which I will post here if successful.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Simple Share Buttons Adder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic