[Plugin: Twitter Tools] Post Title Display
Some users have been asking how to change the display of the WordPress posts that come from twitter. The default is to have the tweet essentially repeat itself – it is truncated to 30 characters in the title and shown in full in the content area.
To change this, do the following:
1) access the twitter-tools.php file
2) find the lines that read as follows (they should be around lines 503 and 504)…
‘post_content’ => $wpdb->escape(aktt_make_clickable($tweet->tw_text))
, ‘post_title’ => $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))
3) change the information after the => as desired (remember to add single quotes if you want to make it text)
For example, if you change the ‘post_content’ line to this…
‘post_content’ => ‘Post from Twitter…’
…the line ‘Post from Twitter…’ will appear as the title of every post that is pulled from Twitter via Twitter Tools.
Note that this will not change any posts that have already migrated into your WordPress blog, ONLY posts migrated after the change is made. Also note that if you ever update the plugin, you will need to make this change again.
- The topic ‘[Plugin: Twitter Tools] Post Title Display’ is closed to new replies.