• hey Matt, before I start fiddling with adding stuff to templates and so on *lol* I thought I’d better ask if you have this on your feature list anyways…:

    I have a lot of static content on my sites and use pages for that. any way to have tweetable autotweet new pages as well as posts?
    And an option to include the tweetmeme-button on pages as well?

    If its not on your list, don’t break your back – the button could of course be added to the page templates, and, of course – errr – no, tweeting my pages manually is somehow uncool… ??

    cheers & thanks for this cool plug!
    Martin

    P.S.: writing the “&” reminds me of a small bug I ran into – if you tweet from your wp admin and have a “&” in your tweet, the message gets cut off right before the “&”

Viewing 2 replies - 1 through 2 (of 2 total)
  • P.S.: writing the “&” reminds me of a small bug I ran into – if you tweet from your wp admin and have a “&” in your tweet, the message gets cut off right before the “&”

    I’ll certainly be looking into that

    Neither of the features are “on my list,” as you put it, but you can make a quick tweak to the plugin code if you want to auto-tweet your pages.

    In tweetable.php, look for this code block in the tweetable_publish_tweet function:

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

    You can remove the || $post->post_type == 'page' part and your pages should probably auto-tweet.

    Thread Starter Elfenwald

    (@elfenwald)

    Thanks! this should do the job, will report back if it really does. ??

    Looks to me like this would also be the right place to prevent certain categories or page trees from being tweeted, right?

    Update: works perfectly!

    and to show the tweetme-button on certain pages, search the same file for

    *** Tweetmeme Button ***/
    function tweetable_add_tweetmeme($content) {
    
    	$installed = get_option('tweetable_account_activated');
    
    	if (is_single() && $installed) {

    and change the last line to:

    if ((is_single() || is_page_template('XYZ.php') ) && $installed) {

    of course you have to use the filename of the page template you use for the pages that you want to have the Tweetmeme-button on – so replace XYZ.php with your template file.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: Tweetable] Autotweet and tweetmeme-button for PAGES?’ is closed to new replies.