WordPress.org

Support

Support » Plugins and Hacks » Share Buttons Not Sharing the Specific Post URL

Share Buttons Not Sharing the Specific Post URL

Viewing 5 replies - 1 through 5 (of 5 total)
  • Yup, same issue for me, it’d be perfect if it weren’t for that.

    jmwebdesign
    Member

    @jmwebdesign

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

    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);

    Gemini23
    Participant

    @gemini23

    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?

    atomicjdm
    Member

    @atomicjdm

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Share Buttons Not Sharing the Specific Post URL’ is closed to new replies.