<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>rtCafe &#187; wordpress snippets</title>
	<atom:link href="http://cafe.rtcamp.com/tag/wordpress-snippets/feed/" rel="self" type="application/rss+xml" />
	<link>http://cafe.rtcamp.com</link>
	<description>rtCamp Cafe</description>
	<lastBuildDate>Mon, 14 May 2012 19:26:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Quick Logout Link For WordPress</title>
		<link>http://cafe.rtcamp.com/2012/03/14/quick-logout-link-for-wordpress/</link>
		<comments>http://cafe.rtcamp.com/2012/03/14/quick-logout-link-for-wordpress/#comments</comments>
		<pubDate>Wed, 14 Mar 2012 05:26:29 +0000</pubDate>
		<dc:creator>Rutwick</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wordpress snippets]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2012/03/14/quick-logout-link-for-wordpress/</guid>
		<description><![CDATA[Hi, Logging out from WordPress becomes very irritating and time consuming sometimes, as you have to hover over the &#8216;Howdy, admin&#8217; link, then wait for the pop down, and then click on the log out link. Sometimes the pop down takes a longer time to show depending on your browser and sometimes you end up [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p>Logging out from WordPress becomes very irritating and time consuming sometimes, as you have to hover over the &#8216;Howdy, admin&#8217; link, then wait for the pop down, and then click on the log out link. Sometimes the pop down takes a longer time to show depending on your browser and sometimes you end up clicking the &#8216;Howdy, admin&#8217; link thus causing a page refresh.</p>
<p>There might be times when every last second counts and this logout process turns out to be a liability. Hence I&#8217;ve written a small snippet to shorten this process to just one click. This code will add a &#8216;Log Out&#8217; link to the left of the &#8216;Howdy, admin&#8217; link, hence no need to hover and wait anymore!</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
add_action(&#8216;admin_bar_menu&#8217;, &#8216;rtp_logout_url&#8217;);<br />
function rtp_logout_url($admin_bar)<br />
{<br />
   $args = array(<br />
            &#8216;id&#8217;    =&gt; &#8216;rtp-logout&#8217;,<br />
            &#8216;title&#8217; =&gt; &#8216;Log Out&#8217;,<br />
            &#8216;href&#8217;  =&gt; wp_logout_url(),<br />
            &#8216;parent&#8217; =&gt; &#8216;top-secondary&#8217;,<br />
            &#8216;meta&#8217;  =&gt; array(<br />
                    &#8216;title&#8217; =&gt; __(&#8216;Log Out Now!&#8217;),<br />
                    ),<br />
            );</p>
<p>    $admin_bar-&gt;add_menu( $args);<br />
}<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>Just paste this code to your theme&#8217;s <strong>functions.php</strong> file and you&#8217;re done!<br />
Doesn&#8217;t look very essential as such, but saves a few seconds (and from frustration)!</p>
<p>Issued in public interest by,<br />
Rutwick</p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2012/03/14/quick-logout-link-for-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>APPLYING SPAN TO THE FIRST LETTER OF EVERY WORD IN A SENTENCE</title>
		<link>http://cafe.rtcamp.com/2012/03/07/applying-span-to-the-first-letter-of-every-word-in-a-sentence/</link>
		<comments>http://cafe.rtcamp.com/2012/03/07/applying-span-to-the-first-letter-of-every-word-in-a-sentence/#comments</comments>
		<pubDate>Wed, 07 Mar 2012 10:59:55 +0000</pubDate>
		<dc:creator>Abhimanyu</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[snippet]]></category>
		<category><![CDATA[snippet code]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[wordpress snippets]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2012/03/07/applying-span-to-the-first-letter-of-every-word-in-a-sentence/</guid>
		<description><![CDATA[Check out @ http://pastebin.com/ij6xeeGT For javascript substring reference: http://www.w3schools.com/jsref/jsref_substring.asp]]></description>
			<content:encoded><![CDATA[<p>Check out @ <a href="http://pastebin.com/ij6xeeGT" rel="nofollow">http://pastebin.com/ij6xeeGT</a></p>
<p>For javascript substring reference: <a href="http://www.w3schools.com/jsref/jsref_substring.asp" rel="nofollow">http://www.w3schools.com/jsref/jsref_substring.asp</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2012/03/07/applying-span-to-the-first-letter-of-every-word-in-a-sentence/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>101 Useful WordPress Snippets</title>
		<link>http://cafe.rtcamp.com/2012/02/20/101-useful-wordpress-snippets/</link>
		<comments>http://cafe.rtcamp.com/2012/02/20/101-useful-wordpress-snippets/#comments</comments>
		<pubDate>Mon, 20 Feb 2012 14:08:57 +0000</pubDate>
		<dc:creator>Abhimanyu</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[snippets]]></category>
		<category><![CDATA[wordpress snippets]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2012/02/20/101-useful-wordpress-snippets/</guid>
		<description><![CDATA[Check @ http://www.wpmods.com/101-useful-wordpress-snippets/]]></description>
			<content:encoded><![CDATA[<p>Check @ <a href="http://www.wpmods.com/101-useful-wordpress-snippets/" rel="nofollow">http://www.wpmods.com/101-useful-wordpress-snippets/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2012/02/20/101-useful-wordpress-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Show Future or Schedule Post on Single Posts</title>
		<link>http://cafe.rtcamp.com/2011/10/18/show-future-or-schedule-post-on-single-posts/</link>
		<comments>http://cafe.rtcamp.com/2011/10/18/show-future-or-schedule-post-on-single-posts/#comments</comments>
		<pubDate>Tue, 18 Oct 2011 16:24:45 +0000</pubDate>
		<dc:creator>Manish Songirkar</dc:creator>
				<category><![CDATA[post]]></category>
		<category><![CDATA[wordpress snippets]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2011/10/18/show-future-or-schedule-post-on-single-posts/</guid>
		<description><![CDATA[add_filter( &#8216;the_posts&#8217;, &#8216;rt_show_future_posts&#8217; ); function rt_show_future_posts( $posts ) { global $wp_query, $wpdb; if ( is_single() &#038;&#038; $wp_query->post_count == 0 ) { $posts = $wpdb->get_results( $wp_query->request ); } return $posts; } Thanks to Suhas and Sameer.]]></description>
			<content:encoded><![CDATA[<p>add_filter( &#8216;the_posts&#8217;, &#8216;rt_show_future_posts&#8217; );<br />
function rt_show_future_posts( $posts ) {<br />
    global $wp_query, $wpdb;<br />
    if ( is_single() &#038;&#038; $wp_query->post_count == 0 ) {<br />
        $posts = $wpdb->get_results( $wp_query->request );<br />
    }<br />
    return $posts;<br />
}</p>
<p>Thanks to Suhas and Sameer.</p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2011/10/18/show-future-or-schedule-post-on-single-posts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Browser detection and OS detection with body class&#8230;</title>
		<link>http://cafe.rtcamp.com/2011/07/21/browser-detection-and-os-detection-with-body-class/</link>
		<comments>http://cafe.rtcamp.com/2011/07/21/browser-detection-and-os-detection-with-body-class/#comments</comments>
		<pubDate>Thu, 21 Jul 2011 18:08:52 +0000</pubDate>
		<dc:creator>Manish Songirkar</dc:creator>
				<category><![CDATA[link]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[wordpress snippets]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2011/07/21/browser-detection-and-os-detection-with-body-class/</guid>
		<description><![CDATA[Browser detection and OS detection with body_class http://goo.gl/3RLL0]]></description>
			<content:encoded><![CDATA[<p>Browser detection and OS detection with body_class</p>
<p><a href="http://goo.gl/3RLL0" rel="nofollow">http://goo.gl/3RLL0</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2011/07/21/browser-detection-and-os-detection-with-body-class/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WordPress Snippets tricks http wpsnipp com</title>
		<link>http://cafe.rtcamp.com/2011/06/20/wordpress-snippets-tricks-http-wpsnipp-com/</link>
		<comments>http://cafe.rtcamp.com/2011/06/20/wordpress-snippets-tricks-http-wpsnipp-com/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 12:31:13 +0000</pubDate>
		<dc:creator>Manish Songirkar</dc:creator>
				<category><![CDATA[link]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[wordpress snippets]]></category>

		<guid isPermaLink="false">http://cafe.rtcamp.com/2011/06/20/wordpress-snippets-tricks-http-wpsnipp-com/</guid>
		<description><![CDATA[WordPress Snippets / tricks http://wpsnipp.com/]]></description>
			<content:encoded><![CDATA[<p>WordPress Snippets / tricks</p>
<p><a href="http://wpsnipp.com/" rel="nofollow">http://wpsnipp.com/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://cafe.rtcamp.com/2011/06/20/wordpress-snippets-tricks-http-wpsnipp-com/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

