Auto-Tweet if Type is ‘Status’ using OAuth

My guess is that you aren’t hitting the {$old_status}_to_{$new_status} action, which is what you are hooking to with draft_to_published – for new posts there is no guarantee that the “old” status is actually “draft”. Have you tried using the {$new_status}_{$post->post_type} action, which in your case would be publish_status?

How would I use this filter to change the output of the date format to “Twitter time”?

WordPress has a core function human_time_diff that does what you want, using it with the filter you provide you have someting like so: add_filter(‘latest_tweets_render_date’, function( $created_at ){ $date = DateTime::createFromFormat(‘D M d H:i:s O Y’, $created_at ); return sprintf( ‘%s ‘ . __( ‘ago’ ), human_time_diff( $date->format(‘U’) ) ); });

WP-TweetButton is not displaying the tweet button if this is set to “Manual.” [closed]

Looks like you’ve mis-named the function. It is the_tweetbutton(), rather than tweetbutton(). Also, you should always wrap Plugin-added function calls in if (function_exists()) conditional wrappers. Putting that together, this: <div id=”tweet-button”> <?php tweetbutton(); ?> </div> Becomes this: <div id=”tweet-button”> <?php if ( function_exists( ‘the_tweetbutton’ ) ) the_tweetbutton(); ?> </div>

Displaying tweets problem with @username

Hi Rob@:try with this plugin Tweet This.you can set your custom image also.:) or Try this code… Open the sidebar.php Locate the “twitter-feed” div <div class=”twitter-feed”> <h2>What I’m up to…</h2> <ul id=”twitter_update_list”></ul> <script type=”text/javascript” src=”http://twitter.com/javascripts/blogger.js”></script> <script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/JunLoayza.json?callback=twitterCallback2&amp;count=1″></script> <div class=”follow-on-twitter”> <a rel=”nofollow” href=””>Follow me on Twitter</a> </div> </div> Replace with Twitter username <script type=”text/javascript” src=”http://twitter.com/statuses/user_timeline/AddYourUsernameHere.json?callback=twitterCallback2&amp;count=1″></script> … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)