<?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>Brian Krogsgard</title> <atom:link href="http://krogsgard.com/feed/" rel="self" type="application/rss+xml" /><link>http://krogsgard.com</link> <description>WordPress and other stuff</description> <lastBuildDate>Thu, 08 Mar 2012 15:40:14 +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>Web development podcasts worth listening to</title><link>http://krogsgard.com/2012/web-development-podcasts/</link> <comments>http://krogsgard.com/2012/web-development-podcasts/#comments</comments> <pubDate>Thu, 08 Mar 2012 15:38:59 +0000</pubDate> <dc:creator>Brian</dc:creator> <category><![CDATA[Web]]></category> <category><![CDATA[podcasts]]></category> <category><![CDATA[web development]]></category> <guid
isPermaLink="false">http://krogsgard.com/?p=1403</guid> <description><![CDATA[<p>I listen to quite a few podcasts. I’m obsessed with web development. Therefore I listen to most web development podcasts I can get my hands on. Here is a rundown of those that I currently enjoy.</p><p><a
href="http://krogsgard.com/2012/web-development-podcasts/">Web development podcasts worth listening to</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></description> <content:encoded><![CDATA[<p>I listen to quite a few podcasts. I&#8217;m obsessed with web development. Therefore I listen to most web development podcasts I can get my hands on. Below is a rundown of those that I currently enjoy.</p><h3>Boagworld Boos &amp; Podcast</h3><p><img
class="alignright size-full wp-image-1408" title="boagworld-podcast" src="http://krogsgard.com/wp-content/uploads/2012/03/boagworld-podcast.png" alt="Boagworld web development podcast" width="268" height="190" /><a
title="Boagworld Podcast" href="http://boagworld.com/podcast-archive/" onclick="pageTracker._trackPageview('/outgoing/boagworld.com/podcast-archive/?referer=');">Paul Boag</a> creates a nice mix between his boos and his seasonal podcast. The boos are frequent, usually at least one or two per week, and each lasts a few minutes. They&#8217;re quite topical and informative. They range from issues of human behavior to in-depth development practice.</p><p>His seasonal show is themed and thought out in advance. The last season was all about the redesign of <a
title="Boagworld Podcast" href="http://boagworld.com" onclick="pageTracker._trackPageview('/outgoing/boagworld.com?referer=');">boagworld.com</a>, which I highly enjoyed. His next season is coming up, and I recommend it for anyone out there that works with the web. I&#8217;m probably biased toward these shows because Paul Boag runs a development company making websites for clients, and I work for a company that makes websites for clients. I can connect.</p><h3>The Big Web Show</h3><p><img
class="alignright size-full wp-image-1413" title="the-big-web-show" src="http://krogsgard.com/wp-content/uploads/2012/03/the-big-web-show.jpg" alt="the big web show podcast" width="270" height="152" />Jeffrey Zeldman hosts the 5by5 branded <a
title="The Big Web Show podcast" href="http://5by5.tv/bigwebshow" onclick="pageTracker._trackPageview('/outgoing/5by5.tv/bigwebshow?referer=');">Big Web Show</a>. It&#8217;s an interview show, where Zeldman, and sometimes Dan Benjamin, interview prominent members of the web community. Guests range from startup founders to prominent developers, but some of my favorite episodes are when Jeffrey interviews Happy Cog employees, or just talks about his own experiences to Dan. His style is laid back and he asks his guests a lot of personal questions.</p><p>Considering Zeldman&#8217;s role in original web standards development and the web in general, I&#8217;m excited to listen to each episode to gain some perspective from someone with, well, so much perspective.</p><h3>Shop Talk Show</h3><p><img
class="alignright size-medium wp-image-1416" title="shoptalk" src="http://krogsgard.com/wp-content/uploads/2012/03/shoptalk-300x70.png" alt="shop talk show web development podcast" width="300" height="70" /><a
title="Shop Talk podcast" href="http://shoptalkshow.com" onclick="pageTracker._trackPageview('/outgoing/shoptalkshow.com?referer=');">Shop Talk</a> is pretty new but it&#8217;s got some things going for it that are quite rare in this genre of podcast: it&#8217;s consistent and focused.</p><p>Chris Coyier and Dave Rupert do an excellent job focusing the conversation on front end web development, and they bring on great guests. They also do a nice job engaging an audience by answering audio and email questions during the show. And they balance it all with geeky humor, which is fun. It&#8217;s only a couple of months in and it&#8217;s skyrocketed to the top of my &#8220;must-listen&#8221; list.</p><h3>SitePoint Podcast</h3><p><img
class="alignright size-full wp-image-1412" title="sitepoint-podcast" src="http://krogsgard.com/wp-content/uploads/2012/03/sitepoint-podcast.png" alt="sitepoint podcast" width="202" height="61" />I have a love hate relationship with the <a
title="SitePoint podcast" href="http://www.sitepoint.com/category/podcast/" onclick="pageTracker._trackPageview('/outgoing/www.sitepoint.com/category/podcast/?referer=');">SitePoint podcast</a>. It&#8217;s a weekly show, but it&#8217;s really two shows in one. Every other week, Louis Simoneau interviews people who I probably would never know about otherwise. The interviews are quite good and more in-depth than some other shows I listen to. Simoneau is a developer for Flippa and isn&#8217;t afraid to talk technical on these weeks.</p><p>On the opposite week, Simoneau hosts a panel show where a few others join him to talk about industry news. This week suffers from the same disease as most &#8220;tech&#8221; podcasts &#8211; branditis. They talk too much about the Apples and the Googles and yada yada. I keep listening to it because periodically there&#8217;s a good story I&#8217;m interested in, but the non-interview week is typically lower on my listening priorities.</p><h3>Creative Coding Podcast</h3><p><img
class="alignright size-medium wp-image-1417" title="creative-coding" src="http://krogsgard.com/wp-content/uploads/2012/03/creative-coding-300x125.png" alt="creative coding podcast" width="300" height="125" /><a
title="Creative Coding podcast" href="http://creativecodingpodcast.com/" onclick="pageTracker._trackPageview('/outgoing/creativecodingpodcast.com/?referer=');">Creative Coding</a> is a good and informative podcast, but leans toward the boring side. The hosts are mostly front end devs, I think, and they have quiet, English accents, and sometimes I realize my mind is wondering off while I listen. The content can be good, and I listen when I don&#8217;t have something better, but it&#8217;s just not as engaging a podcast as some others. It&#8217;s a good one to listen to while you&#8217;re doing a mindless task so you can concentrate on what they&#8217;re saying, because the topics are pretty good ones most of the time. It&#8217;s hosted by Iain Lebb and Seb Lee-Delisle (sorry if y&#8217;all happen to read this &#8211; not trying to be rude).</p><h3>The Non-Breaking Space</h3><p><img
class="alignright size-full wp-image-1411" title="non-breaking-space" src="http://krogsgard.com/wp-content/uploads/2012/03/non-breaking-space.png" alt="" width="214" height="154" />I found out about <a
title="Non Breaking Space Podcast" href="http://nonbreakingspace.tv/" onclick="pageTracker._trackPageview('/outgoing/nonbreakingspace.tv/?referer=');">Non Breaking Space</a> from Shop Talk, as the two shows did a joint show. It&#8217;s also quite new, only a few episodes in, and I don&#8217;t have much experience with it. However, in the joint shows, the conversation was informative and entertaining. It&#8217;s hosted by front end developers Christopher Schmitt, Dave McFarland, and Chris Enns. It&#8217;s been fun so far, despite the near identical guest list to Shop Talk. I&#8217;m addicted, like I said, and it&#8217;s fun, so I listen.</p><h3>The Industry Radio Show</h3><p><img
class="alignright size-medium wp-image-1414" title="the-industry-radio-show" src="http://krogsgard.com/wp-content/uploads/2012/03/the-industry-radio-show-300x123.png" alt="the web development industry radio show" width="300" height="123" /><a
title="The Industry Podcast" href="http://theindustry.cc/category/podcast/" onclick="pageTracker._trackPageview('/outgoing/theindustry.cc/category/podcast/?referer=');">The Industry Radio Show</a> is another podcast I found because of Chris Coyier. It&#8217;s both a new blog and podcast. It&#8217;s only had a couple of episodes. They&#8217;ve been decent. The verdict is still out.</p><p>The hosts are a bit hipsterish (sorry if that offends you hipsters) but the topics are mostly relevant. My general annoyance with &#8220;The Industry&#8221; is the name. It comes off very cocky to me, calling your own industry <em>the</em> industry. But that&#8217;s just me bitching. The podcast has that same quasi-cockiness in my opinion, but I have enjoyed it &#8211; and it&#8217;s welcome when there really just aren&#8217;t a lot of podcasts focused for web developers.</p><h3>Freelance Jam Podcast</h3><p><img
class="alignright size-full wp-image-1410" title="freelance-jam-podcast" src="http://krogsgard.com/wp-content/uploads/2012/03/freelance-jam-podcast.png" alt="freelance jam and web development podcast" width="204" height="169" /><a
title="Freelance Jam podcast" href="http://freelancejam.com" onclick="pageTracker._trackPageview('/outgoing/freelancejam.com?referer=');">Freelance Jam</a> is a podcast by Dave Yankowiak and Brian Casel. They&#8217;re both WordPress developers, and their guests tend to skew toward WordPress oriented freelancers and people, but not totally. They&#8217;re nice guys, and I like WordPress (a lot), so I really like this show.</p><p>A bonus for me is that they recently made an mp3 format of the show available in addition to video, so now I can subscribe without hogging my limited iPhone storage capacity.</p><p>If you&#8217;re a freelancer, it&#8217;s good. If you&#8217;re a freelancing WordPress developer, it&#8217;s great.</p><h3>ExplicitWeb Podcast</h3><p><img
class="alignright size-full wp-image-1409" title="explicit-web" src="http://krogsgard.com/wp-content/uploads/2012/03/explicit-web.png" alt="explicit web podcast" width="64" height="64" />I honestly don&#8217;t know if <a
title="Explicit Web podcast" href="http://explicitweb.co.uk/" onclick="pageTracker._trackPageview('/outgoing/explicitweb.co.uk/?referer=');">ExplicitWeb</a> is still going. It&#8217;s been terribly inconsistent from the start, but when they do a show, I enjoy it. It&#8217;s hosted by Hannah Wolfe, John O&#8217;Nolan, and Rob Hawkes. They are very entertaining, and somewhat on topic. But the topics are fun, mostly front end and design and sometimes about WordPress. Every three months or so it comes around, I listen.</p><h3>WPCandy Shows</h3><p><img
class="alignright size-full wp-image-1415" title="wpcandy-podcast" src="http://krogsgard.com/wp-content/uploads/2012/03/wpcandy-podcast.jpg" alt="wpcandy wordpress podcast" width="280" height="160" />I had to have a shameless plug, right? <a
title="WPCandy podcast" href="http://wpcandy.com/shows" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/shows?referer=');">WPCandy</a> is probably the leading WordPress blog there is, and it&#8217;s got a full gauntlet of audio (and some video) <a
href="http://wpcandy.com/shows" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/shows?referer=');">shows</a>. I&#8217;ve been a part of the main podcast for quite a while, where I talk with Ryan Imel about WordPress news. It&#8217;s crazy meta, so don&#8217;t listen unless you geek out on WordPress.</p><p>In the last few months, Ryan has expanded the shows to include others with more interviews and some where we preview plugins and stuff. We also do one jointly that&#8217;s similar to Paul Boag&#8217;s Boos, called <a
title="Pressbits" href="http://wpcandy.com/category/broadcasts/pressbits" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/category/broadcasts/pressbits?referer=');">Pressbits</a>, where we share quick thoughts about WordPress. So, if you do like WordPress and podcasts, check them out. If you&#8217;re obsessed with WordPress like me, I recommend the master show feed in iTunes to catch them all.</p><h3>Not quite web</h3><p>Inevitably, if I don&#8217;t mention it, someone will comment about some &#8220;tech&#8221; podcasts I&#8217;ve left out. I haven&#8217;t left them out, I&#8217;m trying to focus on web stuff. But, Here is a short list of some tech podcasts I like.</p><ul><li><a
title="Mixergy Podcast" href="http://mixergy.com" onclick="pageTracker._trackPageview('/outgoing/mixergy.com?referer=');">Mixergy</a> &#8211; Great if you&#8217;re into startups. Tons of interviews, each around an hour long. Pretty evergreen, though. Set your iTunes to delete these after you listen, or your iPhone will fill up fast.</li><li><a
title="This Week in Tech" href="http://twit.tv" onclick="pageTracker._trackPageview('/outgoing/twit.tv?referer=');">TWiT</a> &#8211; Leo Laporte still does tech news better than most. His weekly TWiT show is good for listening to while you&#8217;re doing something else. I don&#8217;t waste my time listening to all the other This Week in Big Companies he does, this one has plenty of that.</li><li><a
title="The Verge podcast" href="http://www.theverge.com/label/podcast" onclick="pageTracker._trackPageview('/outgoing/www.theverge.com/label/podcast?referer=');">The Verge</a> &#8211; I&#8217;ve listened to a couple of these, but they seem to be more hipster versions of TWiT. Their blog is fantastic, though.</li><li><a
title="5by5 podcasts" href="http://5by5.tv" onclick="pageTracker._trackPageview('/outgoing/5by5.tv?referer=');">5by5</a> &#8211; Dan Benjamin has tons of podcasts. I really don&#8217;t subscribe but periodically go to his site and see what&#8217;s recent and if I want to listen to something. I really like what Dan does, despite not keeping many of his feeds in iTunes.</li></ul><h3>Podcasts of my past</h3><p>Sometimes I listen to podcasts for a bit and then they just sort of fizzle out. Here are a few I&#8217;ve tried that I can think of.</p><ul><li>Think Vitamin &#8211; use to be decent, though somewhat boring (lots of inside baseball &#8211; not boring personalities) podcast by Ryan Carson and company. It hasn&#8217;t had an episode since their Treehouse product came out.</li><li>This Developer&#8217;s Life &#8211; I tried this one based on a recommendation I saw somewhere, but it&#8217;s just too personal and off topic. I&#8217;ve unsubscribed.</li><li>Unmatched Style &#8211; I imagine this is like the one above. I honestly can&#8217;t remember anything about it.</li><li>Copyblogger &#8211; Copyblogger does a online marketing podcast that is so marketing-y it made my ears bleed, so I unsubscribed.</li><li>Probably a lot of others I can&#8217;t think of right now.</li></ul><h3>Find any worth listening?</h3><p>If you found any of these worth checking out, then good, that&#8217;s why I shared them. But you get extra internet points if you share some others with me that maybe I&#8217;ve not heard of. I can always go for more web related podcasts in my queue.</p><p><a
href="http://krogsgard.com/2012/web-development-podcasts/">Web development podcasts worth listening to</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></content:encoded> <wfw:commentRss>http://krogsgard.com/2012/web-development-podcasts/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>Quick tip: Use wp_trim_words() to limit words in WordPress</title><link>http://krogsgard.com/2012/quick-tip-use-wp_trim_words-to-limit-words-in-wordpress/</link> <comments>http://krogsgard.com/2012/quick-tip-use-wp_trim_words-to-limit-words-in-wordpress/#comments</comments> <pubDate>Thu, 23 Feb 2012 05:50:34 +0000</pubDate> <dc:creator>Brian</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[wp_trim_words()]]></category> <guid
isPermaLink="false">http://krogsgard.com/?p=1395</guid> <description><![CDATA[<p>wp_trim_words() is a handy function to limit things in WordPress to a particular number of words. Here's an example of how to use it.</p><p><a
href="http://krogsgard.com/2012/quick-tip-use-wp_trim_words-to-limit-words-in-wordpress/">Quick tip: Use wp_trim_words() to limit words in WordPress</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></description> <content:encoded><![CDATA[<p><img
src="http://krogsgard.com/wp-content/uploads/2012/02/trim-words-300x278.png" alt="" title="trim-words" width="300" height="278" class="alignright size-medium wp-image-1398" />WordPress 3.3 brought a handy little function with it in <code><a
href="http://codex.wordpress.org/Function_Reference/wp_trim_words" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Function_Reference/wp_trim_words?referer=');">wp_trim_words()</a></code>. An example use case is a height limited box like the one pictured, where you want to make sure that the title and excerpt don&#8217;t cause the text to overflow the box.</p><p>Using <code>wp_trim_words()</code> allows us to limit the title and excerpt, and anything else really, to a particular number of words. How practical a name. You can define the number of words to limit them to, and also define what you&#8217;d like the &#8220;more&#8221; text to be. My example just uses ellipses.</p><p>Below is a gist to show it in use. Everything but the use of <code>wp_trim_words()</code> is totally arbitrary, but there for fun.</p><div
id="gist-1890689" class="gist"><div
class="gist-file"><div
class="gist-data gist-syntax"><div
class="highlight"><pre><div class='line' id='LC1'>&lt;div class=&quot;info-box&quot;&gt;</div><div class='line' id='LC2'><br/></div><div class='line' id='LC3'>	&lt;?php	$krogsquery = new WP_Query( array( </div><div class='line' id='LC4'>						&#39;post_type&#39; =&gt; &#39;post&#39;,</div><div class='line' id='LC5'>						&#39;posts_per_page&#39; =&gt; 3</div><div class='line' id='LC6'>						)); ?&gt;</div><div class='line' id='LC7'><br/></div><div class='line' id='LC8'>		&lt;h3 class=&quot;info-headline&quot;&gt;City News&lt;/h3&gt;					</div><div class='line' id='LC9'><br/></div><div class='line' id='LC10'>	&lt;?php while($krogsquery-&gt;have_posts()) : $krogsquery-&gt;the_post(); ?&gt;</div><div class='line' id='LC11'><br/></div><div class='line' id='LC12'>		&lt;div &lt;?php post_class(); ?&gt; id=&quot;post-&lt;?php the_ID(); ?&gt;&quot;&gt;</div><div class='line' id='LC13'><br/></div><div class='line' id='LC14'>			&lt;?php </div><div class='line' id='LC15'><br/></div><div class='line' id='LC16'>			$trimtitle = get_the_title();</div><div class='line' id='LC17'><br/></div><div class='line' id='LC18'>			$shorttitle = wp_trim_words( $trimtitle, $num_words = 4, $more = &#39;… &#39; );</div><div class='line' id='LC19'><br/></div><div class='line' id='LC20'>				echo &#39;&lt;h6 class=&quot;info-title&quot;&gt;&#39; . &#39;&lt;a href=&quot;&#39; . get_permalink() . &#39;&quot;&gt;&#39; . $shorttitle . &#39;&lt;/a&gt;&lt;/h6&gt;&#39;;  </div><div class='line' id='LC21'><br/></div><div class='line' id='LC22'>			$trimexcerpt = get_the_excerpt();</div><div class='line' id='LC23'><br/></div><div class='line' id='LC24'>			$shortexcerpt = wp_trim_words( $trimexcerpt, $num_words = 10, $more = &#39;… &#39; ); </div><div class='line' id='LC25'><br/></div><div class='line' id='LC26'>				echo &#39;&lt;a href=&quot;&#39; . get_permalink() . &#39;&quot;&gt;&lt;p&gt;&#39; . $shortexcerpt . &#39;&lt;/p&gt;&lt;/a&gt;&#39;; </div><div class='line' id='LC27'><br/></div><div class='line' id='LC28'>			?&gt;</div><div class='line' id='LC29'><br/></div><div class='line' id='LC30'>		&lt;/div&gt;&lt;!-- post class --&gt;</div><div class='line' id='LC31'><br/></div><div class='line' id='LC32'>	&lt;?php endwhile; ?&gt;</div><div class='line' id='LC33'><br/></div><div class='line' id='LC34'>	&lt;?php wp_reset_postdata(); // reset the query ?&gt; </div><div class='line' id='LC35'><br/></div><div class='line' id='LC36'>&lt;/div&gt;&lt;!-- .info-box --&gt;</div></pre></div></div><div
class="gist-meta"> <a
href="https://gist.github.com/raw/1890689/fcb16f05aeb3cf08fb8c23e6568751d8e7bdc14c/wp-trim-words-example" style="float:right;" onclick="pageTracker._trackPageview('/outgoing/gist.github.com/raw/1890689/fcb16f05aeb3cf08fb8c23e6568751d8e7bdc14c/wp-trim-words-example?referer=');">view raw</a> <a
href="https://gist.github.com/1890689#file_wp_trim_words_example" style="float:right;margin-right:10px;color:#666" onclick="pageTracker._trackPageview('/outgoing/gist.github.com/1890689_file_wp_trim_words_example?referer=');">wp-trim-words-example</a> <a
href="https://gist.github.com/1890689" onclick="pageTracker._trackPageview('/outgoing/gist.github.com/1890689?referer=');">This Gist</a> brought to you by <a
href="http://github.com" onclick="pageTracker._trackPageview('/outgoing/github.com?referer=');">GitHub</a>.</div></div></div><p>Now quit reading and go make some stuff.</p><p><a
href="http://krogsgard.com/2012/quick-tip-use-wp_trim_words-to-limit-words-in-wordpress/">Quick tip: Use wp_trim_words() to limit words in WordPress</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></content:encoded> <wfw:commentRss>http://krogsgard.com/2012/quick-tip-use-wp_trim_words-to-limit-words-in-wordpress/feed/</wfw:commentRss> <slash:comments>11</slash:comments> </item> <item><title>Create a shortcode to show when a post was last updated</title><link>http://krogsgard.com/2012/create-a-shortcode-to-show-when-a-post-was-last-updated/</link> <comments>http://krogsgard.com/2012/create-a-shortcode-to-show-when-a-post-was-last-updated/#comments</comments> <pubDate>Sun, 12 Feb 2012 19:41:34 +0000</pubDate> <dc:creator>Brian</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[get_the_modified_time]]></category> <guid
isPermaLink="false">http://krogsgard.com/?p=1382</guid> <description><![CDATA[<p>Let's create a handy shortcode to show when a post was last modified, using the get_the_modified_time function.</p><p><a
href="http://krogsgard.com/2012/create-a-shortcode-to-show-when-a-post-was-last-updated/">Create a shortcode to show when a post was last updated</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></description> <content:encoded><![CDATA[<p>I like to use shortcodes to generate my bylines in themes. It makes for more rapid development. I use <a
href="http://themehybrid.com/hybrid-core" onclick="pageTracker._trackPageview('/outgoing/themehybrid.com/hybrid-core?referer=');">Hybrid Core</a> for my development, and it&#8217;s got a handy shortcode called <code>entry-published</code> that shows the post&#8217;s publish date utilizing the site&#8217;s designated date and time format.</p><p>I wanted to do the same thing for a post&#8217;s modified date for a project, so I copied (so credit to Justin Tadlock) the shortcode from Hybrid Core and changed <code>get_the_time()</code> with <code>get_the_modified_time()</code>.</p><p>It&#8217;s that easy. You can use this in your templates with the <code><a
href="http://codex.wordpress.org/Function_Reference/do_shortcode" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/Function_Reference/do_shortcode?referer=');">do_shortcode()</a></code> function, or however you want to display them.</p><p>Here&#8217;s the gist.</p><div
id="gist-1810326" class="gist"><div
class="gist-file"><div
class="gist-data gist-syntax"><div
class="highlight"><pre><div class='line' id='LC1'>add_shortcode( &#39;entry-modified&#39;, &#39;krogs_entry_modified_shortcode&#39; );</div><div class='line' id='LC2'><br/></div><div class='line' id='LC3'>function krogs_entry_modified_shortcode( $attr ) {</div><div class='line' id='LC4'><br/></div><div class='line' id='LC5'>	$domain = hybrid_get_textdomain();</div><div class='line' id='LC6'>	$attr = shortcode_atts( array( &#39;before&#39; =&gt; &#39;&#39;, &#39;after&#39; =&gt; &#39;&#39;, &#39;format&#39; =&gt; get_option( &#39;date_format&#39; ) ), $attr );</div><div class='line' id='LC7'><br/></div><div class='line' id='LC8'>	$modified = &#39;&lt;abbr class=&quot;modified&quot; title=&quot;&#39; . sprintf( get_the_modified_time( esc_attr__( &#39;l, F jS, Y, g:i a&#39;, $domain ) ) ) . &#39;&quot;&gt;&#39; . sprintf( get_the_modified_time( $attr[&#39;format&#39;] ) ) . &#39;&lt;/abbr&gt;&#39;;</div><div class='line' id='LC9'>	return $attr[&#39;before&#39;] . $modified . $attr[&#39;after&#39;];</div><div class='line' id='LC10'><br/></div><div class='line' id='LC11'>}</div></pre></div></div><div
class="gist-meta"> <a
href="https://gist.github.com/raw/1810326/88908bdf0567d56cd4092589b3737512a597b6fc/%5Bentry-modified%5D%20shortcode" style="float:right;" onclick="pageTracker._trackPageview('/outgoing/gist.github.com/raw/1810326/88908bdf0567d56cd4092589b3737512a597b6fc/_5Bentry-modified_5D_20shortcode?referer=');">view raw</a> <a
href="https://gist.github.com/1810326#file_[entry_modified] shortcode" style="float:right;margin-right:10px;color:#666" onclick="pageTracker._trackPageview('/outgoing/gist.github.com/1810326_file_entry_modified_shortcode?referer=');">[entry-modified] shortcode</a> <a
href="https://gist.github.com/1810326" onclick="pageTracker._trackPageview('/outgoing/gist.github.com/1810326?referer=');">This Gist</a> brought to you by <a
href="http://github.com" onclick="pageTracker._trackPageview('/outgoing/github.com?referer=');">GitHub</a>.</div></div></div><p>The part that says <code>$domain = hybrid_get_textdomain()</code> can be replaced by whatever your theme&#8217;s <a
href="http://codex.wordpress.org/I18n_for_WordPress_Developers#Choosing_and_loading_a_domain" onclick="pageTracker._trackPageview('/outgoing/codex.wordpress.org/I18n_for_WordPress_Developers_Choosing_and_loading_a_domain?referer=');">textdomain</a> is if you don&#8217;t use a Hybrid Core theme. Now you can simply use the <code>entry-modified</code> shortcode to show when a post was updated.</p><p>It can be quite useful if you have a lot of consistently updated content in your blog and want to show that a post is still up to date. I find it highly preferable to removing the post date entirely.</p><p><a
href="http://krogsgard.com/2012/create-a-shortcode-to-show-when-a-post-was-last-updated/">Create a shortcode to show when a post was last updated</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></content:encoded> <wfw:commentRss>http://krogsgard.com/2012/create-a-shortcode-to-show-when-a-post-was-last-updated/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>On building the web</title><link>http://krogsgard.com/2012/on-building-the-web/</link> <comments>http://krogsgard.com/2012/on-building-the-web/#comments</comments> <pubDate>Fri, 27 Jan 2012 04:37:06 +0000</pubDate> <dc:creator>Brian</dc:creator> <category><![CDATA[Web]]></category> <category><![CDATA[building the web]]></category> <guid
isPermaLink="false">http://krogsgard.com/?p=1377</guid> <description><![CDATA[<p>"The car shaped our environment in the 20th century in this huge, tectonic way. I don't think it's a stretch to say that the screen will be as important to shaping our environment in the 21st century."</p><p><a
href="http://krogsgard.com/2012/on-building-the-web/">On building the web</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-large wp-image-1378" title="the-web-and-the-car" src="http://krogsgard.com/wp-content/uploads/2012/01/the-web-and-the-car-580x285.png" alt="when we build by wilson miner" width="580" height="285" /></p><blockquote><p>&#8220;The car shaped our environment in the 20th century in this huge, tectonic way. I don&#8217;t think it&#8217;s a stretch to say that the screen will be as important to shaping our environment in the 21st century. What goes on those screens is pretty important, because the things that we choose to surround ourself with will shape what we become. We&#8217;re not just making pretty interfaces, we&#8217;re actually in the process of building an environment where we&#8217;ll spend the most of our time for the rest of our lives. We&#8217;re the designers. We&#8217;re the builders. What do we want that enviornment to feel like? What do we want to feel like?&#8221;</p></blockquote><p>Wilson Miner said this in <a
href="http://www.webmonkey.com/2012/01/video-when-we-build/" onclick="pageTracker._trackPageview('/outgoing/www.webmonkey.com/2012/01/video-when-we-build/?referer=');">this presentation</a> called &#8220;When We Build&#8221; at a 2011 web conference. I didn&#8217;t know who Miner was before the video, but he had a lot to do with Apple&#8217;s first major redesign, and is also one of the original developers of the Django framework.</p><p>Not much of the presentation is about the web specifically, but it&#8217;s really a great talk about how our industry and work fits in with our world experience. He also discusses the relationship between users and the things they interact with, whether a magazine, a car, or a screen. There are too many good quotes in the video to put here, so I included the one that hit me first and hardest. It&#8217;s definitely worth the watch, and does a really great job expressing why I get excited about building things on the web.</p><p>(hat tip to my coworker, and Infomedia Creative Director, <a
href="https://twitter.com/#!/roboticarm/status/162657117680050176" onclick="pageTracker._trackPageview('/outgoing/twitter.com/_/roboticarm/status/162657117680050176?referer=');">David</a>)</p><p><a
href="http://krogsgard.com/2012/on-building-the-web/">On building the web</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></content:encoded> <wfw:commentRss>http://krogsgard.com/2012/on-building-the-web/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>My first WordPress plugin, Toolbar Quick View</title><link>http://krogsgard.com/2012/my-first-wordpress-plugin-toolbar-quick-view/</link> <comments>http://krogsgard.com/2012/my-first-wordpress-plugin-toolbar-quick-view/#comments</comments> <pubDate>Mon, 23 Jan 2012 14:31:30 +0000</pubDate> <dc:creator>Brian</dc:creator> <category><![CDATA[Wordpress]]></category> <category><![CDATA[plugin]]></category> <category><![CDATA[Toolbar Quick View]]></category> <guid
isPermaLink="false">http://krogsgard.com/?p=1363</guid> <description><![CDATA[<p>I've written my first WordPress plugin for the official repository, called Toolbar Quick View. I hope you like it, and I'd appreciate any feedback!</p><p><a
href="http://krogsgard.com/2012/my-first-wordpress-plugin-toolbar-quick-view/">My first WordPress plugin, Toolbar Quick View</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></description> <content:encoded><![CDATA[<p><img
class="aligncenter size-large wp-image-1371" title="Toolbar Quick View WordPress Plugin" src="http://krogsgard.com/wp-content/uploads/2012/01/banner-772x2501-580x208.png" alt="Toolbar Quick View WordPress Plugin" width="580" height="208" />I&#8217;ve written my first WordPress plugin for the official repository, called <a
href="http://wordpress.org/extend/plugins/toolbar-quick-view/" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/extend/plugins/toolbar-quick-view/?referer=');">Toolbar Quick View</a>. It&#8217;s really quite simple, which is the type of plugin I wanted to make as my first.</p><p>It&#8217;s essentially the same concept as the &#8220;+ New&#8221; menu items in the WordPress 3.3 toolbar, except that it directs you to the main edit.php screen (or equivalent for non-Post post types), rather than the add new post screen. It essentially eliminates one click from the front end.</p><p>I often want to just go to the generic post / page / post_type / etc overview screens, and I find this extra toolbar menu useful. Maybe you will too.</p><p>Coding this was pretty darn simple. I essentially stole code from the admin-bar.php file from within WordPress&#8217; wp-includes folder, except I used the new add_node function rather than add_menu to register the new items to the toolbar. My favorite part of this plugin is that it will automatically pick up your custom post types for inclusion in the &#8220;View&#8221; menu.</p><p>I&#8217;ve created an <a
title="Toolbar Quick View" href="http://krogsgard.com/toolbar-quick-view/">information page</a> on this site for Toolbar Quick View for anyone that cares. You can download it from the plugin page on <a
href="http://wordpress.org/extend/plugins/toolbar-quick-view/" onclick="pageTracker._trackPageview('/outgoing/wordpress.org/extend/plugins/toolbar-quick-view/?referer=');">WordPress.org</a>, or of course from your dashboard.</p><p>If you have any feedback for improvement, I&#8217;d certainly appreciate it. This was fun. I already want to do it again.</p><p><a
href="http://krogsgard.com/2012/my-first-wordpress-plugin-toolbar-quick-view/">My first WordPress plugin, Toolbar Quick View</a> is a post Brian on <a
href="http://krogsgard.com">Brian Krogsgard</a>. If you enjoyed it, please consider leaving a comment.</p>]]></content:encoded> <wfw:commentRss>http://krogsgard.com/2012/my-first-wordpress-plugin-toolbar-quick-view/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
<!-- Dynamic page generated in 1.394 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-05-18 14:17:33 -->
<!-- Compression = gzip -->
