<?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:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>oganosin blog&#187; wp_get_attachment_thumb_url</title>
	<atom:link href="http://www.oganosin.net/blog/tag/wp_get_attachment_thumb_url/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.oganosin.net/blog</link>
	<description>oganosin weblog</description>
	<lastBuildDate>Wed, 21 Jul 2010 03:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oganosin.net/blog/tag/wp_get_attachment_thumb_url/feed/" />
		<item>
		<title>Wordpress で記事に関連付けられたイメージのサムネイルを取得</title>
		<link>http://www.oganosin.net/blog/wordpress/200906010/</link>
		<comments>http://www.oganosin.net/blog/wordpress/200906010/#comments</comments>
		<pubDate>Mon, 01 Jun 2009 08:15:57 +0000</pubDate>
		<dc:creator>oganosin</dc:creator>
				<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp_get_attachment_thumb_url]]></category>
		<category><![CDATA[サムネイル]]></category>

		<guid isPermaLink="false">http://www.oganosin.net/blog/?p=97</guid>
		<description><![CDATA[Wordpress で記事に関連付けられたイメージのサムネイルを取得する方法をようやく発見。
参考にしたのは
[WP]Wordpress2.5～2.6　サムネイル画像を取得して表示
まんまそのまんまだけどこんな感じですね [...]]]></description>
			<content:encoded><![CDATA[<p>Wordpress で記事に関連付けられたイメージのサムネイルを取得する方法をようやく発見。<br />
参考にしたのは</p>
<p><a href="http://tenderfeel.xsrv.jp/wordpress/129/">[WP]Wordpress2.5～2.6　サムネイル画像を取得して表示</a></p>
<p>まんまそのまんまだけどこんな感じですね。</p>
<pre>
<code>
while (have_posts()){
	$attachments = get_children(array('post_parent' => get_the_ID(),
			'post_type' => 'attachment',
			'post_mime_type' => 'image',
			'orderby' => 'menu_order'));
	if ( is_array($attachments) ){
		$first_attachment = array_shift($attachments);
		$thumb = wp_get_attachment_thumb_url($first_attachment->ID);
	}
}
</code>
</pre>
<p>あとはサムネイルのサイズを途中で変えた場合に、再生成を行う方法が知りたい・・・。<br />
要調査だな。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.oganosin.net/blog/wordpress/200906010/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.oganosin.net/blog/wordpress/200906010/" />
	</item>
	</channel>
</rss>
