WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. ehong33234
    Member
    Posted 1 year 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!

    http://wordpress.org/extend/plugins/simple-share-buttons-adder/

  2. NeHoMaR
    Member
    Posted 1 year 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
    Member
    Posted 9 months 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
    Member
    Posted 8 months 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) . '>';

    to:

    $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

About this Topic

Tags

No tags yet.