<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: WordPress Custom Fields: Listing A Series Of Posts</title>
	<atom:link href="http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts/feed" rel="self" type="application/rss+xml" />
	<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts</link>
	<description>Life, Blogging, and WordPress</description>
	<lastBuildDate>Fri, 10 Feb 2012 12:19:21 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Matt</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-491091</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 23 Nov 2011 06:43:51 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-491091</guid>
		<description>I can&#039;t say thank you enough!  Not only for this post but for all the other various bits and pieces of info you have scattered all over the web.  Your name comes up quite a bit and very few people explain things as well as you do.  As I am new to all this I find most of the info assumes that you are already a php wiz which I am not.

I was not looking forward to attempting the task explained in this post because all the info I found elsewhere was way to complicated.  I was able to impliment this in about 15 minutes and got it working straight away!  The only place I stumbled up was when I first pasted the code into functions.php and got an error.  Once I removed the &lt;?php tags it worked perfect.  I was hoping you could answer what is probably a stupid question for a beginner...

Why is a &lt;?php tag always shown in examples even when you don&#039;t need to be pasting it into the desired file?

I don&#039;t know if that is a stupid question or not but it is something that always confuses me.  Well, thanks again for your help on this one it has made things much easier!</description>
		<content:encoded><![CDATA[<p>I can&#8217;t say thank you enough!  Not only for this post but for all the other various bits and pieces of info you have scattered all over the web.  Your name comes up quite a bit and very few people explain things as well as you do.  As I am new to all this I find most of the info assumes that you are already a php wiz which I am not.</p>
<p>I was not looking forward to attempting the task explained in this post because all the info I found elsewhere was way to complicated.  I was able to impliment this in about 15 minutes and got it working straight away!  The only place I stumbled up was when I first pasted the code into functions.php and got an error.  Once I removed the &lt;?php tags it worked perfect.  I was hoping you could answer what is probably a stupid question for a beginner&#8230;</p>
<p>Why is a &lt;?php tag always shown in examples even when you don&#039;t need to be pasting it into the desired file?</p>
<p>I don&#039;t know if that is a stupid question or not but it is something that always confuses me.  Well, thanks again for your help on this one it has made things much easier!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kate M</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-332387</link>
		<dc:creator>Kate M</dc:creator>
		<pubDate>Thu, 28 Apr 2011 01:46:54 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-332387</guid>
		<description>Hi Rich, 

I&#039;d love to hear how you did it??

Thanks</description>
		<content:encoded><![CDATA[<p>Hi Rich, </p>
<p>I&#8217;d love to hear how you did it??</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-221569</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Thu, 12 Aug 2010 14:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-221569</guid>
		<description>it&#039;s ok.. I sorted it!  Hadn&#039;t read page 2!</description>
		<content:encoded><![CDATA[<p>it&#8217;s ok.. I sorted it!  Hadn&#8217;t read page 2!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rich</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-221561</link>
		<dc:creator>Rich</dc:creator>
		<pubDate>Thu, 12 Aug 2010 13:50:50 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-221561</guid>
		<description>This is great, been searching for something like this for a while.  It&#039;s almost perfect for what I need it to do!

Is it possible to replace the outputed post ID with an image which is stored in a different custom field?

If you look at the post page here:  http://www.violetrosevintage.com/nang/?p=112

I want to replace the post id under the post with the post-icon for that artist.  Similar to the &#039;Recent Releases&#039; on the right, only specific to the artist of each post.

Is this possible?  I&#039;ve tried amending your code but having no luck!

Thanks</description>
		<content:encoded><![CDATA[<p>This is great, been searching for something like this for a while.  It&#8217;s almost perfect for what I need it to do!</p>
<p>Is it possible to replace the outputed post ID with an image which is stored in a different custom field?</p>
<p>If you look at the post page here:  <a href="http://www.violetrosevintage.com/nang/?p=112" rel="nofollow">http://www.violetrosevintage.com/nang/?p=112</a></p>
<p>I want to replace the post id under the post with the post-icon for that artist.  Similar to the &#8216;Recent Releases&#8217; on the right, only specific to the artist of each post.</p>
<p>Is this possible?  I&#8217;ve tried amending your code but having no luck!</p>
<p>Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AlexVerse &#187; Blog Archive &#187; The Power of Wordpress Custom Fields</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-184739</link>
		<dc:creator>AlexVerse &#187; Blog Archive &#187; The Power of Wordpress Custom Fields</dc:creator>
		<pubDate>Fri, 09 Apr 2010 00:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-184739</guid>
		<description>[...] 14. WordPress Custom Fields: Listing a Series of Posts [...]</description>
		<content:encoded><![CDATA[<p>[...] 14. WordPress Custom Fields: Listing a Series of Posts [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vidar</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-184524</link>
		<dc:creator>Vidar</dc:creator>
		<pubDate>Tue, 06 Apr 2010 10:07:18 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-184524</guid>
		<description>Hi! Thanks for this nice script! 
I have created a little &quot;addon-script&quot;, if you want to change the order of the posts in a series. Maby you write 5 posts, but decide that the order of the posts is not the same order that you write the posts... Maby the last post you write should be the first post in the series. 

You have to add another custom field, in this script I use &quot;Series_part&quot;, to hold the order of the post you are editing.

Here is the sorting script:

&lt;pre&gt;&lt;code&gt;function sortseries($a, $b){
$aPart = get_post_meta($a-&gt;ID, &#039;Series_part&#039;, true);
$bPart = get_post_meta($b-&gt;ID, &#039;Series_part&#039;, true);
if($aPart ==$bPart){
return0;
}
return($aPart &lt;$bPart)?-1:1;
}&lt;/code&gt;&lt;/pre&gt;

And then you need to add the following line to the original script, so that the posts are sorted before they are printed.

&lt;pre&gt;&lt;code&gt;usort($series_posts, &quot;sortseries&quot;);&lt;/code&gt;&lt;/pre&gt;

 It has to be inserted right after: 

&lt;pre&gt;&lt;code&gt;$series_posts = get_posts($args);&lt;/code&gt;&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Hi! Thanks for this nice script!<br />
I have created a little &#8220;addon-script&#8221;, if you want to change the order of the posts in a series. Maby you write 5 posts, but decide that the order of the posts is not the same order that you write the posts&#8230; Maby the last post you write should be the first post in the series. </p>
<p>You have to add another custom field, in this script I use &#8220;Series_part&#8221;, to hold the order of the post you are editing.</p>
<p>Here is the sorting script:</p>
<pre><code>function sortseries($a, $b){
$aPart = get_post_meta($a-&gt;ID, 'Series_part', true);
$bPart = get_post_meta($b-&gt;ID, 'Series_part', true);
if($aPart ==$bPart){
return0;
}
return($aPart &lt;$bPart)?-1:1;
}</code></pre>
<p>And then you need to add the following line to the original script, so that the posts are sorted before they are printed.</p>
<pre><code>usort($series_posts, "sortseries");</code></pre>
<p> It has to be inserted right after: </p>
<pre><code>$series_posts = get_posts($args);</code></pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nathan B</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-181629</link>
		<dc:creator>Nathan B</dc:creator>
		<pubDate>Tue, 16 Mar 2010 13:00:31 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-181629</guid>
		<description>Is there a way to show only the other items in the series--to exclude the title of the article you&#039;re currently viewing?</description>
		<content:encoded><![CDATA[<p>Is there a way to show only the other items in the series&#8211;to exclude the title of the article you&#8217;re currently viewing?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Adie</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-178270</link>
		<dc:creator>Adie</dc:creator>
		<pubDate>Thu, 18 Feb 2010 05:31:28 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-178270</guid>
		<description>Great stuff Justin.</description>
		<content:encoded><![CDATA[<p>Great stuff Justin.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jam</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-176074</link>
		<dc:creator>Jam</dc:creator>
		<pubDate>Mon, 25 Jan 2010 18:39:52 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-176074</guid>
		<description>Hi Justin, great article, very helpful.

Is it possible to list all the values of a certain key? 

For example, i&#039;m making a gallery site, and i have a custom field called &quot;artist&quot;, my client would input the name of the artist when writing each new post.

I want to list all the artists, so, all the values that have been typed into the Artist custom field.

I&#039;m sure this is possible but can&#039;t work it out.

Thanks,

James</description>
		<content:encoded><![CDATA[<p>Hi Justin, great article, very helpful.</p>
<p>Is it possible to list all the values of a certain key? </p>
<p>For example, i&#8217;m making a gallery site, and i have a custom field called &#8220;artist&#8221;, my client would input the name of the artist when writing each new post.</p>
<p>I want to list all the artists, so, all the values that have been typed into the Artist custom field.</p>
<p>I&#8217;m sure this is possible but can&#8217;t work it out.</p>
<p>Thanks,</p>
<p>James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Birgit</title>
		<link>http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-150906</link>
		<dc:creator>Birgit</dc:creator>
		<pubDate>Mon, 07 Sep 2009 21:21:20 +0000</pubDate>
		<guid isPermaLink="false">http://justintadlock.com/archives/2007/11/01/wordpress-custom-fields-listing-a-series-of-posts#comment-150906</guid>
		<description>Justin,

your comment from November 10th helped me with my mini loop problems after upgrading to WP 2.8.4.

Thanks a lot!</description>
		<content:encoded><![CDATA[<p>Justin,</p>
<p>your comment from November 10th helped me with my mini loop problems after upgrading to WP 2.8.4.</p>
<p>Thanks a lot!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

