Viewing 4 replies - 1 through 4 (of 4 total)
  • It is a hack but I needed this also so I did the following…

    OPEN wordtwit.php

    FIND:

    $message = $settings['message'];
    		$message = str_replace( '[title]', $my_post->post_title, $message );

    BELLOW ADD

    $my_cat = get_the_category( $my_post->ID );
    		$category = $my_cat[0]->cat_name;
    		$message = str_replace ( '[category]', $category, $message );

    Thanks. That might cause the Tweet to be too long for some of them. Our plan is to make the Tweet area editable so someone can add a quick hash tag there.

    Any progress on this? I’d like to automatically add my tags, up to the character limit. I found a post from last year on how to do it but it’s with an older version and it doesn’t seem to map onto what’s in the code now. The site’s down, but here is the cached version.

    [double post]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Plugin: WordTwit] Feature request: category shortcode for tweet’ is closed to new replies.