<?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: Custom order of posts on main page</title>
	<atom:link href="http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/</link>
	<description>or place where strange things may happen...</description>
	<lastBuildDate>Fri, 30 Jul 2010 15:57:08 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Prasanna</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-91108</link>
		<dc:creator>Prasanna</dc:creator>
		<pubDate>Wed, 23 Jun 2010 05:02:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-91108</guid>
		<description>Nice one. Helped me to make change in my theme as I required. Can you tell by default where query_posts() function has been called?</description>
		<content:encoded><![CDATA[<p>Nice one. Helped me to make change in my theme as I required. Can you tell by default where query_posts() function has been called?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bjarne Christensen</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-90842</link>
		<dc:creator>Bjarne Christensen</dc:creator>
		<pubDate>Wed, 16 Jun 2010 22:28:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-90842</guid>
		<description>Thanks! Very useful trick...</description>
		<content:encoded><![CDATA[<p>Thanks! Very useful trick&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: query_posts &#8211; WordPress テンプレートタグのリファレンス &#124; Lovelog+*</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-90513</link>
		<dc:creator>query_posts &#8211; WordPress テンプレートタグのリファレンス &#124; Lovelog+*</dc:creator>
		<pubDate>Wed, 09 Jun 2010 15:57:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-90513</guid>
		<description>[...] メインページに記事のnietoperzka のカスタムオーダー [...]</description>
		<content:encoded><![CDATA[<p>[...] メインページに記事のnietoperzka のカスタムオーダー [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wp-query-post document</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-84214</link>
		<dc:creator>wp-query-post document</dc:creator>
		<pubDate>Wed, 03 Feb 2010 11:19:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-84214</guid>
		<description>[...] nietoperzka&#8217;s Custom order of posts on the main page [...]</description>
		<content:encoded><![CDATA[<p>[...] nietoperzka&#8217;s Custom order of posts on the main page [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wordpress volgorde omdraaien</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-81514</link>
		<dc:creator>wordpress volgorde omdraaien</dc:creator>
		<pubDate>Fri, 04 Dec 2009 19:54:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-81514</guid>
		<description>[...] http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/   Hoort bij: Wordpress &#8212; admin [...]</description>
		<content:encoded><![CDATA[<p>[...] <a href="http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/" rel="nofollow">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/</a>   Hoort bij: Wordpress &#8212; admin [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: wordpress</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-79776</link>
		<dc:creator>wordpress</dc:creator>
		<pubDate>Thu, 22 Oct 2009 04:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-79776</guid>
		<description>i want to query posts published in one month ago ，and display in random ，then how would i do？</description>
		<content:encoded><![CDATA[<p>i want to query posts published in one month ago ，and display in random ，then how would i do？</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Post Order? - DIY Themes Forums</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-75503</link>
		<dc:creator>Post Order? - DIY Themes Forums</dc:creator>
		<pubDate>Sun, 07 Dec 2008 21:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-75503</guid>
		<description>[...] if (have_posts()) : while (have_posts()) : the_post(); ?&gt; ]  I found the above code at Custom order of posts on main page WordPress Experiments  But in light of the use of hooks, I&#039;m not sure where to put it. (I did download your hooks plugin, [...]</description>
		<content:encoded><![CDATA[<p>[...] if (have_posts()) : while (have_posts()) : the_post(); ?&gt; ]  I found the above code at Custom order of posts on main page WordPress Experiments  But in light of the use of hooks, I&#8217;m not sure where to put it. (I did download your hooks plugin, [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nn5</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-73200</link>
		<dc:creator>nn5</dc:creator>
		<pubDate>Tue, 25 Nov 2008 21:32:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-73200</guid>
		<description>hello!

can i change the order of posts by the ID of comments?</description>
		<content:encoded><![CDATA[<p>hello!</p>
<p>can i change the order of posts by the ID of comments?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-61849</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Tue, 16 Sep 2008 15:54:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-61849</guid>
		<description>Holy cow... it just ate all my code!

Let me try this...
First off, I want to be able to dynamically create a new page that pulls content from posts. For example, if I want to create a page about dogs, I want it to pull all posts published in the dogs category. I am using the Custom Fields of the page to add category as the key and the category name (dogs) in the value, to know where to pull the information. To determine this when the page loads, I have used the following code within the PHP call:

$cat=get_post_meta($post-&gt;ID,&#039;category&#039;,$single=true);

This pulls the category from the Custom Fields and stores it as $cat

Next, I use the following code:

$post=query_posts(&quot;category_name=$cat&amp;posts_per_page=5&quot;); if (have_posts()) : while (have_posts()) : the_post();

Then the normal display stuff for the loop. 

Funny thing (frustrating things actually) is that it works PERFECTLY on one website, but will not on another and I can’t find ANY differences. I am using the same exact code. I know it is pulling the category because I added to the else part and it prints the correct category. So it is just not pulling the content in the loop.

I did try your method of :

$posts=query_posts($query_string . &quot;&amp;category_name=$cat&quot;); 
if (have_posts()) : while (have_posts()) : the_post(); 

But that showed only the PAGE named after the category (same page I am on!)

I am lost why the loop works on one site but not the other. Any ideas? This is killing me!
Ed</description>
		<content:encoded><![CDATA[<p>Holy cow&#8230; it just ate all my code!</p>
<p>Let me try this&#8230;<br />
First off, I want to be able to dynamically create a new page that pulls content from posts. For example, if I want to create a page about dogs, I want it to pull all posts published in the dogs category. I am using the Custom Fields of the page to add category as the key and the category name (dogs) in the value, to know where to pull the information. To determine this when the page loads, I have used the following code within the PHP call:</p>
<p>$cat=get_post_meta($post-&gt;ID,&#8217;category&#8217;,$single=true);</p>
<p>This pulls the category from the Custom Fields and stores it as $cat</p>
<p>Next, I use the following code:</p>
<p>$post=query_posts(&#8221;category_name=$cat&amp;posts_per_page=5&#8243;); if (have_posts()) : while (have_posts()) : the_post();</p>
<p>Then the normal display stuff for the loop. </p>
<p>Funny thing (frustrating things actually) is that it works PERFECTLY on one website, but will not on another and I can’t find ANY differences. I am using the same exact code. I know it is pulling the category because I added to the else part and it prints the correct category. So it is just not pulling the content in the loop.</p>
<p>I did try your method of :</p>
<p>$posts=query_posts($query_string . &#8220;&amp;category_name=$cat&#8221;);<br />
if (have_posts()) : while (have_posts()) : the_post(); </p>
<p>But that showed only the PAGE named after the category (same page I am on!)</p>
<p>I am lost why the loop works on one site but not the other. Any ideas? This is killing me!<br />
Ed</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ed</title>
		<link>http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/comment-page-1/#comment-61848</link>
		<dc:creator>Ed</dc:creator>
		<pubDate>Tue, 16 Sep 2008 15:49:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.nietoperzka.com/wptraining/custom-order-of-posts-on-main-page/#comment-61848</guid>
		<description>Maybe you can help me. I am using this code with mixed results. I have a couple sites I am running WP2.6 on and this works on some and not on others. Here&#039;s what I am doing...

First off, I want to be able to dynamically create a new page that pulls content from posts. For example, if I want to create a page about dogs, I want it to pull all posts published in the dogs category. I am using the Custom Fields of the page to add category as the key and the category name (dogs) in the value, to know where to pull the information. To determine this when the page loads, I have used the following code:
ID,&#039;category&#039;,$single=true); ?&gt;

I have then added the following code (using includes to keep it clean) to show the posts for &quot;dogs&quot; on the page:

Related Articles:


&lt;a href=&quot;&quot; rel=&quot;bookmark&quot;&gt;&lt;/a&gt;



Written by &#160;


&#160;


Funny thing (frustrating things actually) is that it works PERFECTLY on one website, but will not on another and I can&#039;t find ANY differences. I am using the same exact code. I know it is pulling the category because I added  to the else part and it prints the correct category. So it is just not pulling the content in the loop.

I did try your method of :


But that showed only the PAGE named after the category (same page I am on!)

I am lost why the loop works on one site but not the other. Any ideas? This is killing me!
Ed</description>
		<content:encoded><![CDATA[<p>Maybe you can help me. I am using this code with mixed results. I have a couple sites I am running WP2.6 on and this works on some and not on others. Here&#8217;s what I am doing&#8230;</p>
<p>First off, I want to be able to dynamically create a new page that pulls content from posts. For example, if I want to create a page about dogs, I want it to pull all posts published in the dogs category. I am using the Custom Fields of the page to add category as the key and the category name (dogs) in the value, to know where to pull the information. To determine this when the page loads, I have used the following code:<br />
ID,&#8217;category&#8217;,$single=true); ?&gt;</p>
<p>I have then added the following code (using includes to keep it clean) to show the posts for &#8220;dogs&#8221; on the page:</p>
<p>Related Articles:</p>
<p>&lt;a href=&#8221;" rel=&#8221;bookmark&#8221;&gt;</p>
<p>Written by &nbsp;</p>
<p>&nbsp;</p>
<p>Funny thing (frustrating things actually) is that it works PERFECTLY on one website, but will not on another and I can&#8217;t find ANY differences. I am using the same exact code. I know it is pulling the category because I added  to the else part and it prints the correct category. So it is just not pulling the content in the loop.</p>
<p>I did try your method of :</p>
<p>But that showed only the PAGE named after the category (same page I am on!)</p>
<p>I am lost why the loop works on one site but not the other. Any ideas? This is killing me!<br />
Ed</p>
]]></content:encoded>
	</item>
</channel>
</rss>
