<?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>Sun, 12 Feb 2012 19:41:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<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[Let's create a handy shortcode to show when a post was last modified, using the get_the_modified_time function.]]></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>
]]></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["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."]]></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>
]]></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[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!]]></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>
]]></content:encoded>
			<wfw:commentRss>http://krogsgard.com/2012/my-first-wordpress-plugin-toolbar-quick-view/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>WordPress code snippets in the open</title>
		<link>http://krogsgard.com/2012/wordpress-code-snippets-in-the-open/</link>
		<comments>http://krogsgard.com/2012/wordpress-code-snippets-in-the-open/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 06:30:52 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[snippets]]></category>
		<guid isPermaLink="false">http://krogsgard.com/?p=1342</guid>
		<description><![CDATA[I keep quite a few code snippets around. My problem is they are all over the place - forums, bookmarks, old sites, dev sites, etc. I need to change this.]]></description>
			<content:encoded><![CDATA[<p>I keep quite a few code snippets around. My problem is they are all over the place &#8211; forums, bookmarks, old sites, dev sites, etc. I just kindof know where &#8220;I&#8217;ve done that&#8221; and I go grab it the next time I need it.</p>
<p>Well, this isn&#8217;t so good for my coworkers, or other WordPress users that could benefit from these.</p>
<p>Some other folks are more organized than me. Bill Erickson, for one, has an <a href="http://www.billerickson.net/code/" onclick="pageTracker._trackPageview('/outgoing/www.billerickson.net/code/?referer=');">awesome list of snippets</a> that he&#8217;s shared with the community. I found out about his list from the comments of this <a href="http://wpcandy.com/reports/what-webdevstudios-has-in-store-for-2012" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/reports/what-webdevstudios-has-in-store-for-2012?referer=');">WPCandy post</a> which notes that WebDevStudios will also have a snippet repository &#8211; which is awesome.</p>
<p>One advantage of sharing code snippets is you know where they are. The other is that it&#8217;s a small way to give back. For me, I found most of my code snippets in some original form or another somewhere else in the first place, and the best I can do is share working snippets with others.</p>
<p>So look out for some code snippets. In fact, it&#8217;s a big part of my upcoming project code named Happy, which I&#8217;m shooting to launch by the end of the month.</p>
]]></content:encoded>
			<wfw:commentRss>http://krogsgard.com/2012/wordpress-code-snippets-in-the-open/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Blogging summary for 2011 &#8211; here and elsewhere</title>
		<link>http://krogsgard.com/2012/blogging-2011/</link>
		<comments>http://krogsgard.com/2012/blogging-2011/#comments</comments>
		<pubDate>Sat, 07 Jan 2012 19:42:00 +0000</pubDate>
		<dc:creator>Brian</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[blogging]]></category>
		<guid isPermaLink="false">http://krogsgard.com/?p=1339</guid>
		<description><![CDATA[I've been thinking a bit about my posts on this blog and in other communities like Theme Hybrid and WPCandy. So I spent a few minutes and counted them, and lay out a couple of 2012 ambitions.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been thinking a bit about my posts on this blog and elsewhere. So I spent a few minutes and counted them. My contributions in 2011 to various communities are below:</p>
<h3>Contributions I&#8217;m pretty happy about</h3>
<p><a href="http://wpcandy.com/author/briank" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/author/briank?referer=');">WPCandy Posts</a>: 74 &#8211; I want to write these more consistently in 2012, but maybe not more. Definitely more in-depth and substantial when I do. Total post count on WPCandy is actually 100(nice milestone!), since September 2011.</p>
<p><a href="http://wpcandy.com/category/podcasts" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/category/podcasts?referer=');">WPCandy Podcasts</a>: 15 &#8211; I hope to double this in 2012</p>
<p><a href="http://wpcandy.com/category/broadcasts/first-taste" onclick="pageTracker._trackPageview('/outgoing/wpcandy.com/category/broadcasts/first-taste?referer=');">WPCandy First Tastes</a>: 4 + 1 unpublished &#8211; This is a fun little project. I&#8217;d like to do these a good bit as long as people are enjoying them.</p>
<p>Krogsgard.com: 25 &#8211; I want to triple this.</p>
<p><a href="http://themehybrid.com/support/profile/briank" onclick="pageTracker._trackPageview('/outgoing/themehybrid.com/support/profile/briank?referer=');">Theme Hybrid</a>: 150-180 forum posts &#8211; Probably my most visited website. Kind of difficult to nail down the exact number, but this is close based on paginated archives on my profile page.</p>
<h3>Sadface contributions</h3>
<p>WordPress Stack Exchange: 0 &#8211; I definitely need to change this. I rely on it a great deal, but was slow learning in how to utilize the system.</p>
<p>WP.org forums: 4 &#8211; This speaks for itself in how pathetic it is. Going to start posting here more often when I come across things that are easy to help or I have input on an existing thread.</p>
<p>trac: 0 &#8211; One of my 2012 goals is to get myself on the 3.4 contributors list.</p>
<h3>In Summary</h3>
<p>I&#8217;m happy with my contributions to the WordPress community. However, I have plans to make these contributions better in 2012, and even a trick or two up my sleeve for other places and ways to write about WordPress.</p>
]]></content:encoded>
			<wfw:commentRss>http://krogsgard.com/2012/blogging-2011/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.577 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2012-02-22 09:06:28 -->
<!-- Compression = gzip -->
