WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: Add Twitter, Facebook Like, Google plus one Social share] Strip title of HTML for Twitter

[Resolved] [Plugin: Add Twitter, Facebook Like, Google plus one Social share] Strip title of HTML for Twitter

Viewing 3 replies - 1 through 3 (of 3 total)
  • michaelcollado
    Member

    @michaelcollado

    Never mind. I misspelled “attribute” in the code and broke the site which is why I thought it wasn’t possible. If anyone’s having this problem just look for

    $post_title = get_the_title();

    In tf_display.php and replace it with

    $post_title = the_title_attribute();
    michaelcollado
    Member

    @michaelcollado

    Wait, unresolved actually. It does help but it displays the title anyway before the button on the post. :/ Anyone know of a way to filter out HTML code for the twitter button?

    michaelcollado
    Member

    @michaelcollado

    Hahaha! Okay, I’m the worst. Figured it out now:

    Once again, if anyone needs it:

    $post_title = the_title_attribute (array('echo' => 0) );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: Add Twitter, Facebook Like, Google plus one Social share] Strip title of HTML for Twitter’ is closed to new replies.