Simple Share Buttons Adder
Twitter share text using meta (4 posts)

  1. ehong33234
    Posted 3 years ago #

    Any suggestions on how I can include meta such as %postname% (or similar) into the text field for Twitter sharing advanced settings? My hope is to allow one-click sharing so they don't have to type much, if anything when sharing.

    Great plugin, thanks!


  2. NeHoMaR
    Posted 3 years ago #

    Yeah, I am testing the plugin, and the first I noticed is Twitter doesn't include the post title, it just add link. At the other hand, Facebook includes all, title, image, content, link.

  3. Darrenmooney
    Posted 2 years ago #

    This is something I would really love to have fixed with the share by twitter.

    This is the one thing stopping me from using this plugin, and I really want to because its a great plugin.

  4. CassCreates
    Posted 2 years ago #

    Here's how I got it to show post title with twitter share:

    On line 882 of simple-share-buttons-adder.php change:

    $htmlShareButtons .= '<a id="ssba_twitter_share" href="http://twitter.com/share?url=' . $urlCurrentPage . '&text=' . $twitterShareText . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>';


    $htmlShareButtons .= '<a id="ssba_twitter_share" href="http://twitter.com/share?url=' . $urlCurrentPage . '&text=' . get_the_title($post->post_parent) . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>'

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


No tags yet.