<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Otto on WordPress &#187; loop</title>
	<atom:link href="http://ottopress.com/tag/loop/feed/" rel="self" type="application/rss+xml" />
	<link>http://ottopress.com</link>
	<description>You have to use an Ottopress to get fresh squeezed Otto.</description>
	<lastBuildDate>Tue, 08 May 2012 17:46:12 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4-beta4-20725</generator>
	<atom:link rel='hub' href='http://ottopress.com/?pushpress=hub'/>
<cloud domain='ottopress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
		<item>
		<title>Shortlink trick</title>
		<link>http://ottopress.com/2010/shortlink-trick/</link>
		<comments>http://ottopress.com/2010/shortlink-trick/#comments</comments>
		<pubDate>Tue, 16 Mar 2010 19:00:47 +0000</pubDate>
		<dc:creator>Otto</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[codex]]></category>
		<category><![CDATA[loop]]></category>
		<category><![CDATA[shortlink]]></category>
		<category><![CDATA[stats]]></category>
		<category><![CDATA[wordpress.com]]></category>
		<category><![CDATA[wp_get_shortlink]]></category>

		<guid isPermaLink="false">http://ottopress.com/?p=57</guid>
		<description><![CDATA[For you people who do your own theme work: &#60;?php if (function_exists('wp_get_shortlink')) { ?&#62; &#60;div&#62;&#60;span class=&#34;post-shortlink&#34;&#62;Shortlink: &#60;input type='text' value='&#60;?php echo wp_get_shortlink(get_the_ID()); ?&#62;' onclick='this.focus(); this.select();' /&#62; &#60;/span&#62;&#60;/div&#62; &#60;?php } ?&#62; Basically that adds a little Shortlink: input box with the shortlink in it. Click the box, and the shortlink becomes selected for easy copy and paste. [...]]]></description>
			<content:encoded><![CDATA[<fb:like href='http://ottopress.com/2010/shortlink-trick/' send='true' layout='standard' show_faces='true' width='450' height='65' action='recommend' colorscheme='light' font='lucida+grande'></fb:like><p>For you people who do your own theme work:</p>
<pre class="brush: php; notranslate">
&lt;?php if (function_exists('wp_get_shortlink')) { ?&gt;
&lt;div&gt;&lt;span class=&quot;post-shortlink&quot;&gt;Shortlink: 
&lt;input type='text' value='&lt;?php echo wp_get_shortlink(get_the_ID()); ?&gt;' onclick='this.focus(); this.select();' /&gt;
&lt;/span&gt;&lt;/div&gt;
&lt;?php } ?&gt;
</pre>
<p>Basically that adds a little Shortlink: input box with the shortlink in it. Click the box, and the shortlink becomes selected for easy copy and paste.</p>
<p>It&#8217;ll also work with any shortlink plugin that uses the &#8220;get_shortlink&#8221; filter to override the shortlink properly (like <a href="http://wordpress.org/extend/plugins/stats/">WordPress.com Stats</a>).</p>
<p>Put it somewhere in <a href="http://codex.wordpress.org/The_Loop">The Loop</a> or on the Single Post pages or what have you.</p>
<a href='http://twitter.com/share?url=http%3A%2F%2Fotto42.com%2F1d&count=vertical&related=otto42%2Cottodestruct&text=Shortlink trick' class='twitter-share-button' data-text='Shortlink trick' data-url='http://otto42.com/1d' data-counturl='http://ottopress.com/2010/shortlink-trick/' data-count='vertical' data-via='ottodestruct' data-related='otto42,ottodestruct'></a><span class="fb_share"><fb:like href="http://ottopress.com/2010/shortlink-trick/" layout="box_count"></fb:like></span><div class="plusone"><g:plusone size=tall annotation=bubble align=left href="http://ottopress.com/2010/shortlink-trick/"></g:plusone></div>]]></content:encoded>
			<wfw:commentRss>http://ottopress.com/2010/shortlink-trick/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
	</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using xcache
Object Caching 356/358 objects using xcache

Served from: ottodestruct.com @ 2012-05-17 01:05:27 -->
