<?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>Andrew-Biss.com &#187; WordPress</title>
	<atom:link href="http://andrew-biss.com/tag/wordpress/feed/" rel="self" type="application/rss+xml" />
	<link>http://andrew-biss.com</link>
	<description>My personal blog on business and technical innovation</description>
	<lastBuildDate>Tue, 01 May 2012 13:48:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>WordPress custom columns: I can see clearly now</title>
		<link>http://andrew-biss.com/wordpress-custom-columns-to-media-library/</link>
		<comments>http://andrew-biss.com/wordpress-custom-columns-to-media-library/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 16:00:54 +0000</pubDate>
		<dc:creator>Andrew Biss</dc:creator>
				
		<category><![CDATA[Articles]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://andrew-biss.com/?p=1565</guid>
		<description><![CDATA[See at a glance what's missing in WordPress admin lists]]></description>
			<content:encoded><![CDATA[<p><strong>See at a glance what&#8217;s missing in WordPress admin lists</strong></p>
<p class="figure"> <img width="942" height="384" src="http://andrew-biss.com/wordpress/wp-content/uploads/wordpress-media-custom-columns.png" alt="Wordpress media library custom columns screenshot" title="Wordpress media library custom columns screenshot" /> <br /><br /><span class="figcaption"><em>Image: Adding custom columns to the WordPress media library list is a great way to spot missing information. The same technique is easily applied to other WordPress Admin lists.</em></span></p>
<p>Searching through your WordPress media library for items without &#8220;alt&#8221; text, caption or description can be time consuming and is error prone, especially if you&#8217;ve more than a few images to check. A quick scan could easily reveal what information is missing; if only these three columns were available. Well, as you&#8217;ll see, it&#8217;s easy to add them with two minor additions to your WordPress theme&#8217;s <code>functions.php</code> file. </p>
<p><span id="more-1565"></span></p>
<h2>Define your custom columns</h2>
<p>First we need to tell WordPress the internal and external names of the custom columns we want to add to the media library.</p>
<pre><code>add_filter('manage_media_columns','isv_custom_media_column_headings');

function isv_custom_media_column_headings($defaults) {
   $defaults['isv_alt']     = 'Alt';
   $defaults['isv_caption'] = 'Caption';
   $defaults['isv_desc']    = 'Description';
   return $defaults;
}</code></pre>
<p>You can enable and disable your custom columns using the screen options panel at the top of the page in exactly the same way as for the standard columns.</p>
<h2>Fill your custom columns with data</h2>
<p>For each media item WordPress asks us what value to show in each of our custom columns. The ALT text comes from a post metadata field, whereas the caption is stored in the post excerpt and the description in the post content.</p>
<pre><code>add_action('manage_media_custom_column','isv_custom_media_column_content',10,2);

function isv_custom_media_column_content($column_name,$id) {
   $none = '&lt;span style=&quot;background-color:yellow; color:black;&quot;&gt;None&lt;/span&gt;';
   switch ($column_name) {
      case 'isv_alt':
         $alt = get_post_meta($id,'_wp_attachment_image_alt',true);
         echo $alt ? $alt : $none;
         break;
      case 'isv_caption':
         $caption = get_the_excerpt();
         echo $caption ? $caption : $none;
         break;
      case 'isv_desc':
         $desc = get_the_content();
         echo $desc ? $desc : $none;
         break;
   }
}</code></pre>
<p>I highlight &#8220;none&#8221; with an inline CSS style so missing information really stands out.</p>
<p>And that&#8217;s all there is to it. Simple!</p>
<h2>Add custom columns to other WordPress Admin lists</h2>
<p>Use the exact same approach to add custom columns to other WordPress Admin lists. Here are the filter and action names you&#8217;ll need:</p>
<dl>
<dt>Posts</dt>
<dd>Filter: <code>manage_posts_columns</code>, Action: <code>manage_posts_custom_column</code></dd>
<dt>Pages</dt>
<dd>Filter: <code>manage_pages_columns</code>, Action: <code>manage_pages_custom_column</code></dd>
<dt>Comments</dt>
<dd>Filter: <code>manage_edit-comments_columns</code>, Action: <code>manage_comments_custom_column</code></dd>
</dl>
<p>I&#8217;ve added custom columns to my post and page lists for the excerpt and featured image thumbnail. On my comments list I&#8217;ve added a custom column to highlight pingbacks and trackbacks so they stand out amongst the other comments.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrew-biss.com/wordpress-custom-columns-to-media-library/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>WordPress 3.0: Ahead of the game</title>
		<link>http://andrew-biss.com/wordpress-3-0-upgrade-ok-minor-css-issue-with-w3-total-cache/</link>
		<comments>http://andrew-biss.com/wordpress-3-0-upgrade-ok-minor-css-issue-with-w3-total-cache/#comments</comments>
		<pubDate>Sun, 20 Jun 2010 11:50:45 +0000</pubDate>
		<dc:creator>Andrew Biss</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://andrew-biss.com/?p=1144</guid>
		<description><![CDATA[WordPress core development outruns my theme and plugins]]></description>
			<content:encoded><![CDATA[<p><strong>WordPress core development outruns my theme and plugins</strong></p>
<p>One of my hosting accounts limits PHP memory, so for these blogs I need to deactivate all plugins before running the automatic update. My other hosting service has enough PHP RAM to not have to do this, which is nice.</p>
<p>All my blogs have now been running WordPress 3.0 in production for a few days and so far I&#8217;ve not met any problems with the core product.</p>
<p>One minor issue has been with the CSS minification in the <a title="The fastest and most complete WordPress performance optimization plugin" href="http://wordpress.org/extend/plugins/w3-total-cache/">W3 Total Cache</a> plugin. I&#8217;m using the latest development version of W3TC but it has an issue with CSS so I&#8217;ve disabled minification until I&#8217;ve time to look into this further.</p>
<p><span id="more-1144"></span></p>
<p>The new multisite feature in WordPress 3.0 seems a good option for combining a number of separate WordPress installations to cut maintenance effort. I&#8217;ve had a first look at some tutorials and it looks possible. However, not all my plugins are yet multisite aware.</p>
<p>The <a title="The Thesis Theme for WordPress is a premium template system designed to serve as the rock-solid foundation beneath any kind of website." href="http://diythemes.com/">Thesis theme</a> I use on all my blogs is not multisite aware so I&#8217;d need to <a title="Tutorial on getting Thesis working in a WordPress multisite network" href="http://www.binaryturf.com/thesis-theme-wordpress-multisite-installation/">make some edits</a> to the Thesis code to work in a multisite network.</p>
<p>So, I&#8217;ll leave my existing installations alone and give my core plugins and theme some time to catch up with WordPress core. Once they are multisite aware I&#8217;ll merge all my retired blogs into a single WordPress installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrew-biss.com/wordpress-3-0-upgrade-ok-minor-css-issue-with-w3-total-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress plugins: Redirection by John Godley</title>
		<link>http://andrew-biss.com/wordpress-redirection-plugin-essential-for-restructuring-blogs/</link>
		<comments>http://andrew-biss.com/wordpress-redirection-plugin-essential-for-restructuring-blogs/#comments</comments>
		<pubDate>Thu, 03 Jun 2010 16:41:55 +0000</pubDate>
		<dc:creator>Andrew Biss</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Plugin]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://andrew-biss.com/?p=1044</guid>
		<description><![CDATA[Easily manage 301 redirections and 404 not-found errors]]></description>
			<content:encoded><![CDATA[<p><strong>Easily manage 301 redirections and 404 not-found errors</strong></p>
<p>If you&#8217;re changing your WordPress site or blog structure and moving posts and pages around, then John Godley&#8217;s <a title="Redirection is a WordPress plugin to manage 301 redirections, keep track of 404 errors, and generally tidy up any loose ends your site may have." href="http://wordpress.org/extend/plugins/redirection/">Redirection plugin</a> makes it easy to add 301 redirects to the new canonical definitions. It also catches 404 errors, with an easy way to add redirects for incorrect URLs, common typos etc.</p>
]]></content:encoded>
			<wfw:commentRss>http://andrew-biss.com/wordpress-redirection-plugin-essential-for-restructuring-blogs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

