Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    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.

    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="https://twitter.com/share?url=' . $urlCurrentPage . '&text=' . $twitterShareText . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>';

    to:

    $htmlShareButtons .= '<a id="ssba_twitter_share" href="https://twitter.com/share?url=' . $urlCurrentPage . '&text=' . get_the_title($post->post_parent) . '" ' . ($arrSettings['ssba_share_new_window'] == 'Y' ? 'target="_blank"' : NULL) . '>'
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Twitter share text using meta’ is closed to new replies.