Support » Plugin: Twitter Tools » [Plugin: Twitter Tools] Change post title

  • Resolved chrlbuc

    (@chrlbuc)


    How do you change the title of blog posts created from tweets? Currently, the title of the posts are simply repeating the tweet, so the blog posts from tweets look redundant.

    On the old version, you could change the title by eliminating “$wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))” from the line:

    ‘post_title’ => $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))’, and put “tweet” or something else.

    I couldn’t find this in 3.0’s code, so the titles are repeating the tweet again…

    http://wordpress.org/extend/plugins/twitter-tools/

Viewing 7 replies - 1 through 7 (of 7 total)
  • Yeah, I’d love to change this as well. I imagine it’s in the CSS somewhere? I’m using a Cyber Chimps theme and the stylesheet is already locked down.

    Plugin Contributor Alex King

    (@alexkingorg)

    There are several good ways to do this (none involve hacking the plugin):

    1. use the aktt_tweet_create_blog_post_data filter to adjust the title value as desired
    2. implement support for status posts in your theme – you probably don’t want to show the title

    Alex, where is the aktt_tweet_create_blog_post_data filter located?

    Thanks

    Hi Alex,

    “2. implement support for status posts in your theme – you probably don’t want to show the title “

    Should that be done using the filter you mention? There isn’t such option in the settings (or I can’t find it). I mean creating tweets as status post, not activating that post format.

    chrlbuc

    (@chrlbuc)

    Hi Alex,

    Still having trouble changing the post titles of my tweets.

    Not really sure what you mean by implementing support for status posts. Where do I do that.

    Or, where is the aktt_tweet_create_blog_post_data filter located?

    Thanks,
    Charlie

    @cmoral3s

    You can copy content.php, and paste that into content-status.php. Then just delete the title part.

    This is great if you just want to hide the title on the index page. But what if you really want to change the title?

    I found the option for adding a prefix to the title but I want to change it altogether. Not being a PHP expert, I’m VERY hesitant to edit the plugin files without a specific example — I’d risk breaking everything else.

    What’s going on is something you can see here:

    http://sonria.org/blog/2013/and-in-even-better-news-no-rain-predicted-for-dr/

    This is a single post page — you can tell because it has replies — not the main index (where my theme has titles hidden from “status” posts). Here, I would like the titles to be a bit more friendly.

    I’m willing to change my theme instead of the plugin files if someone has an idea for that. The reason I want to actually change the post title, though, is because you can also see on this page that there’s something kind of ugly up in the navigation. That’s also driven off the post title.

    Thanks!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘[Plugin: Twitter Tools] Change post title’ is closed to new replies.