WordPress.org

Support

Support » Plugins and Hacks » Tweet only a certain category from wordpress entries…

Tweet only a certain category from wordpress entries…

  • I am currently using a the Tweetable plugin to auto-tweet my blog posts to my Twitter account as updates – my question is can I somehow tweak Tweetable so that it will take new posts only from categories I specify and tweet them and and not just any new post from my blog? I checked several other plugins including Twitter Tools, and seems like there’s no such option… Is it possible to tweak the plugin or any suggestions?

    Thank you in advance.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thank you for the suggestion. It might make it into one of the next couple Tweetable releases as an option…

    Anything on that please? Is that a problem to tweak it?

    It’s on my to-do list… I’m quite busy, so I haven’t had the time to work on things I don’t really get paid to do. 🙂

    I think I might be able to have it into the plugin in a couple weeks or so.

    You can use a service like TwitterFeed and feed in a category’s RSS feed in the time being.

    Alright, thanks redwallhp, your work is great. mainecampus, yeah I know about twitterfeed, thanks for reminding.

    A small hack, until the next version comes out..

    Around line 260, add this line…

    if (in_category (XX, $post) ){

    before

    if ($post->post_status == 'private' || $post->post_type == 'page')
    {return;}

    and then, around line 290,
    add an extra

    }

    after

    $update = $twitter->update_status($tweet, $user_key, $user_key_secret);

    Replace XX with the category id, name or slug. Read this for more details.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Tweet only a certain category from wordpress entries…’ is closed to new replies.
Skip to toolbar