<?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>a later date &#187; new-features</title>
	<atom:link href="http://blog.mittenartworks.com/tag/new-features/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mittenartworks.com</link>
	<description>mitten muses, rants and raves about life, the internet, web design and art</description>
	<lastBuildDate>Mon, 21 Sep 2009 23:43:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>new gallery feature in WordPress&#160;2.5</title>
		<link>http://blog.mittenartworks.com/new-gallery-feature-in-wordpress-25</link>
		<comments>http://blog.mittenartworks.com/new-gallery-feature-in-wordpress-25#comments</comments>
		<pubDate>Sun, 30 Mar 2008 15:57:17 +0000</pubDate>
		<dc:creator>mitten</dc:creator>
				<category><![CDATA[web, tech & gadgets]]></category>
		<category><![CDATA[gallery]]></category>
		<category><![CDATA[navigation]]></category>
		<category><![CDATA[new-features]]></category>
		<category><![CDATA[template]]></category>
		<category><![CDATA[template-tags]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://blog.mittenartworks.com/?p=581</guid>
		<description><![CDATA[When I saw the new image and media management built right into the new WordPress 2.5, I was very excited. It seems a lot easier, at least on the face of it. One problem, however, is that there&#8217;s precious little documentation on how to use the new features. For example, it took me forever to [...]]]></description>
			<content:encoded><![CDATA[<p>When I saw the new image and media management built right into the new WordPress 2.5, I was very excited. It seems a lot easier, at least on the face of it. One problem, however, is that there&#8217;s precious little <a href="http://wordpress.org/development/2008/03/wordpress-25-rc2/">documentation</a> on how to use the new features. For example, it took me forever to figure out how to get the nice thumbnail prev-next navigation that Matt shows on his <a href="http://ma.tt/2008/03/19-gallery/mat_3236/">blog</a>. So here&#8217;s  a quick tip for theme developers trying to use the new <a title="Gallery Shortcodes" href="http://codex.wordpress.org/Using_the_gallery_shortcode">gallery</a> feature:</p>
<p>You&#8217;ve got a new template you can use: <strong>image.php</strong> (yee ha!) The new gallery feature seems to set up &#8217;sub-posts&#8217; for each of the images attached to a post or page. If there is no image.php in your theme, it will use the single.php template (best as I can tell, anyway) to display them. But you can create this image.php template and use new template tags to display the thumbnail navigation if you wish. (You can also change the layout or whatever else you&#8217;d like as well, of course.)</p>
<p>The new thumbnail navigation template tags:<br />
<code>previous_image_link()</code> and <code>next_image_link()</code></p>
<p>Include these in your image.php template file the way you would normally include template tags. Check the Default theme that&#8217;s bundled with the new 2.5 install to see how it&#8217;s done there. You also have to deal with new template tags like:</p>
<p><code>wp_get_attachment_image()</code> and <code>wp_get_attachment_url()</code></p>
<p>Again, the only existing documentation seems to be the image.php file itself in the new version of the Default theme.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.mittenartworks.com/new-gallery-feature-in-wordpress-25/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
	</channel>
</rss>
