<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: How do I show OLDEST posts first?</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Mon, 20 May 2013 13:37:14 +0000</pubDate>

<item>
<title>helgatheviking on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-23196</link>
<pubDate>Fri, 23 Sep 2011 02:34:27 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">23196@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;i always like to use wp_parse_args for adjusting the query params (that way i don't lose the tricky $paged variable.  how about trying:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function oldestfirst() {
  global $wp_query;
  $defaults = $wp_query-&#38;gt;query_vars;
  $new = array(&#38;#39;order&#38;#39;=&#38;gt; &#38;#39;ASC&#38;#39;);
  $args = wp_parse_args( $new, $defaults );
  query_posts($args);
}
add_action(&#38;#39;thematic_above_indexloop&#38;#39;,&#38;#39;oldestfirst&#38;#39;);&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>iCristiano on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-23178</link>
<pubDate>Thu, 22 Sep 2011 12:12:02 +0000</pubDate>
<dc:creator>iCristiano</dc:creator>
<guid isPermaLink="false">23178@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;I have a curious problem with that!&#60;/p&#62;
&#60;p&#62;I used this action to change de order of the posts:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function blue_monday() {
	query_posts($query_string . &#38;quot;&#38;#38;order=ASC&#38;quot;);
}
add_action(&#38;#39;thematic_above_indexloop&#38;#39;, &#38;#39;blue_monday&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The result: I get the oldest post first, but just one. Then, the order keeps the same it was before, I mean, the newest post first.&#60;/p&#62;
&#60;p&#62;I mean, I have 4 posts. Normaly, they are ordered like that:&#60;/p&#62;
&#60;p&#62;nov 13 - post 1&#60;br /&#62;
nov 10 - post 2&#60;br /&#62;
nov 07 - post 3&#60;br /&#62;
oct 05 - post 4&#60;/p&#62;
&#60;p&#62;when I use the action, this is what happens:&#60;/p&#62;
&#60;p&#62;oct 05 - post 4&#60;br /&#62;
nov 13 - post 1&#60;br /&#62;
nov 10 - post 2&#60;br /&#62;
nov 07 - post 3&#60;/p&#62;
&#60;p&#62;Curious, no? Any idea?&#60;br /&#62;
Thanks!
&#60;/p&#62;</description>
</item>
<item>
<title>jonahcoyote on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-8389</link>
<pubDate>Thu, 10 Dec 2009 00:46:12 +0000</pubDate>
<dc:creator>jonahcoyote</dc:creator>
<guid isPermaLink="false">8389@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Thanks Chris,&#60;/p&#62;
&#60;p&#62;I want to use the postMash Filtered plugin to be able to manually order posts in one category (1) and for that to work I need to specify &#38;#38;orderby=menu_order&#38;#38;order=ASC but for all other categories I would want it sorted by date, DESC.&#60;/p&#62;
&#60;p&#62;Here is the code I'm using to achieve this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function orderPosts($orderBy) {
	global $wpdb;
	if(is_category(&#38;#39;1&#38;#39;)) {
		$orderBy = &#38;quot;{$wpdb-&#38;gt;posts}.menu_order ASC&#38;quot;;
	} else {
		$orderBy = &#38;quot;{$wpdb-&#38;gt;posts}.date DESC&#38;quot;;
	}
	return($orderBy);
}
add_filter(&#38;#39;posts_orderby&#38;#39;, &#38;#39;orderPosts&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;That totally messes up my home page display and the display of other pages and categories too. What am I doing wrong?
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-8381</link>
<pubDate>Wed, 09 Dec 2009 22:30:58 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">8381@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;this would be something like:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function blue_monday() {
    if (is_category(&#38;#39;Whatever&#38;#39;) {
	query_posts($query_string . &#38;quot;&#38;#38;order=ASC&#38;quot;);
    } elseif (is_category(&#38;#39;Something else&#38;#39;) {
        query_posts($query_string - &#38;quot;&#38;#38;order=DESC&#38;quot;);
    }
}
add_action(&#38;#39;thematic_above_categoryloop&#38;#39;, &#38;#39;blue_monday&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>jonahcoyote on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-8379</link>
<pubDate>Wed, 09 Dec 2009 22:18:13 +0000</pubDate>
<dc:creator>jonahcoyote</dc:creator>
<guid isPermaLink="false">8379@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;How can this be modified to allow for different orders in different categories? Can it?
&#60;/p&#62;</description>
</item>
<item>
<title>Chris on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-7161</link>
<pubDate>Wed, 14 Oct 2009 20:26:13 +0000</pubDate>
<dc:creator>Chris</dc:creator>
<guid isPermaLink="false">7161@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;try this code in your child theme's functions.php:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;function blue_monday() {
	query_posts($query_string . &#38;quot;&#38;#38;order=ASC&#38;quot;);
}
add_action(&#38;#39;thematic_above_indexloop&#38;#39;, &#38;#39;blue_monday&#38;#39;);&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;Chris
&#60;/p&#62;</description>
</item>
<item>
<title>WaltKania on "How do I show OLDEST posts first?"</title>
<link>http://themeshaper.com/forums/topic/how-do-i-show-oldest-posts-first#post-7159</link>
<pubDate>Wed, 14 Oct 2009 16:19:19 +0000</pubDate>
<dc:creator>WaltKania</dc:creator>
<guid isPermaLink="false">7159@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;For my purposes, it makes a more sense to show my posts in the order they were created, NOT the latest first.  Is there a way to tweak .php to show the posts in REVERSE chronological order?  Meaning, the most recent posts LAST?  I poked around the .php files but couldn't find what governed the date order of the posts.&#60;/p&#62;
&#60;p&#62;Any advice?&#60;/p&#62;
&#60;p&#62;I'm using Thematic, a child theme now.  Will soon be using Thematic Feature Site.
&#60;/p&#62;</description>
</item>

</channel>
</rss>
