WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] [Plug-in: Twitter Tools] Change title of posts (1 post)

  1. KZBlog
    Member
    Posted 4 years ago #

    Thought I'd post this since there were 2 or 3 threads on this topic and no solution. Also, I'm not an expert by any means so if I screwed something up royally, I'd love to hear about it:

    For people looking to change the title of your posts converted from tweets, in this part of the plugin code:

    function do_tweet_post($tweet) {
    		global $wpdb;
    		remove_action('publish_post', 'aktt_notify_twitter', 99);
    		$data = array(
    			'post_content' => $wpdb->escape(aktt_make_clickable($tweet->tw_text))
    			, 'post_title' => $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))

    Change $wpdb->escape(trim_add_elipsis($tweet->tw_text, 30))
    to , 'post_title' => 'Tweet' or whatever you like. No idea if that $wpdb bit is important or not though.

Topic Closed

This topic has been closed to new replies.

About this Topic