WordPress.org

Ready to get started?Download WordPress

Forums

Twitter Tools
[resolved] Change post title (8 posts)

  1. chrlbuc
    Member
    Posted 1 year ago #

    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/

  2. fourhman
    Member
    Posted 1 year ago #

    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.

  3. Alex King
    Member
    Plugin Author

    Posted 1 year ago #

    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

  4. chrlbuc
    Member
    Posted 1 year ago #

    Alex, where is the aktt_tweet_create_blog_post_data filter located?

    Thanks

  5. cmoral3s
    Member
    Posted 1 year ago #

    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.

  6. chrlbuc
    Member
    Posted 1 year ago #

    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

  7. Sherwin Techico
    Member
    Posted 1 year ago #

    @cmoral3s

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

  8. sonriacat
    Member
    Posted 1 year ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic