{"id":13284,"date":"2011-05-16T23:51:37","date_gmt":"2011-05-16T23:51:37","guid":{"rendered":"https:\/\/wordpress.org\/plugins-wp\/just-a-tweet\/"},"modified":"2012-03-24T22:27:21","modified_gmt":"2012-03-24T22:27:21","slug":"just-a-tweet","status":"publish","type":"plugin","link":"https:\/\/so.wordpress.org\/plugins\/just-a-tweet\/","author":7517471,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"0.3.1","stable_tag":"0.3.1","tested":"3.1.4","requires":"2.7","requires_php":"","requires_plugins":"","header_name":"Just A Tweet","header_author":"Ryan Nutt","header_description":"","assets_banners_color":"","last_updated":"2012-03-24 22:27:21","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"http:\/\/www.nutt.net\/tag\/just-a-tweet\/","header_author_uri":"http:\/\/www.nutt.net","rating":0,"author_block_rating":0,"active_installs":10,"downloads":3238,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":[],"upgrade_notice":{"0.2":"<p>Nothing to upgrade, just added shortcode<\/p>","0.1":"<p>First release, nothing to upgrade<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":0},"assets_icons":[],"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["0.1","0.2","0.3","0.3.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[161,159],"plugin_category":[56],"plugin_contributors":[80951],"plugin_business_model":[],"class_list":["post-13284","plugin","type-plugin","status-publish","hentry","plugin_tags-tweet","plugin_tags-twitter","plugin_category-social-and-sharing","plugin_contributors-ryannutt","plugin_committers-aelora","plugin_committers-ryannutt"],"banners":[],"icons":{"svg":false,"icon":"https:\/\/s.w.org\/plugins\/geopattern-icon\/just-a-tweet.svg","icon_2x":false,"generated":true},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Adds a <code>just_a_tweet<\/code> function and short code that allows you to display only \nthe most recent Tweet from a Twitter feed.<\/p>\n\n<p>This came about because I wanted a way to display my most recent tweet in the \nheader of my site. Looking through dozens of Twitter plugins I couldn't find\none that just got the most recent tweet without too much extraneous HTML and\nalso cached the request. This function does both.<\/p>\n\n<p>For more info, visit <a href=\"http:\/\/www.nutt.net\/tag\/just-a-tweet\/\">Nutt.net<\/a> or\nmy <a href=\"http:\/\/twitter.com\/RyanNutt\">Twitter feed<\/a>.<\/p>\n\n<!--section=installation-->\n<ol>\n<li>Upload <code>just-a-tweet<\/code> to the <code>\/wp-content\/plugins\/<\/code> directory<\/li>\n<li>Activate the plugin through the 'Plugins' menu in WordPress<\/li>\n<li>Place <code>&lt;?php just_a_tweet('username'); ?&gt;<\/code> in your templates<\/li>\n<\/ol>\n\n<p>The function <code>just_a_tweet<\/code> takes up to 4 parameters<\/p>\n\n<p>$twitterUser - Required - The name of the Twitter user you want to request<\/p>\n\n<p>$cacheAge - Optional - Number of minutes after which the cache is considered stale. Defaults to 5<\/p>\n\n<p>$forceRefresh - Optional - If true then the cache is not used, although it is\nstill filled. Defaults to false<\/p>\n\n<p>$echo - Optional - Whether the function should also echo out the HTML built. Either\nway the HTML is returned. Defaults to true<\/p>\n\n<h4>Using the shortcode<\/h4>\n\n<p>There is also a shortcode just_a_tweet that you can use inside your posts and pages.<\/p>\n\n<p>[ just_a_tweet twitteruser=yourtwitter ] will pull the most recent tweet from \nwhatever Twitter account you pass as <code>yourtwitter<\/code>.<\/p>\n\n<!--section=faq-->\n<p>None yet<\/p>\n\n<!--section=changelog-->\n<h4>0.3.1<\/h4>\n\n<ul>\n<li>No real change, just updating to switch to a new site<\/li>\n<\/ul>\n\n<h4>0.3<\/h4>\n\n<ul>\n<li>Switched to using a newer Twitter API call<\/li>\n<li>Wasn't working if latest tweet was a retweet. Would cause an error on the first\npage view and then a JSON error after it was pulled from cache. <\/li>\n<\/ul>\n\n<h4>0.2<\/h4>\n\n<ul>\n<li>Added just_a_tweet short code so you can use this inside a post or page without\nhaving to enable PHP code.<\/li>\n<\/ul>\n\n<h4>0.1<\/h4>\n\n<ul>\n<li>Initial Release<\/li>\n<\/ul>","raw_excerpt":"Add a function to get the most recent Tweet from a feed","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/13284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=13284"}],"author":[{"embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/aelora"}],"wp:attachment":[{"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=13284"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=13284"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=13284"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=13284"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=13284"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/so.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=13284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}