Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

query post


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Nov 11, 2010, 03:55 AM
mhone
 
5 posts · Jun 2010
Hello

I need my multi post pages to list the posts in reverse chronological order, which is from the most recent post to the oldest one.
I think I need to change the order by parameter in the query post function, but I don't know in which template of the Atahualpa theme. Can anyone help me with this?

Thanks

Mhone
  #2  
Old Nov 11, 2010, 04:59 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
there is a post in the gold forums 'HOWTO: Juggledad's 'Custom Query' PAGE template' that allows you to use a page template and put the query you want into a custom field of your page. You could use that to set the order. That way you don't touch the code and don't have to worry about upgrades.

The gold forum is available to members who have donated $20 or more.
  #3  
Old Nov 11, 2010, 07:01 AM
mhone
 
5 posts · Jun 2010
Thanks, I have upgraded.
What I need, though, is to change the customize the post order in a multipost page, not just a page I create. Is there I way I can assign the template to a category page listing all the posts included in that category?

Thanks
  #4  
Old Nov 11, 2010, 07:28 AM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
Quote:
This page template will allow you to use one template on any number of pages and craft a query to show posts on that page.

Want to show all the posts in a category - you can do it
Want to show all the posts for several categories - you can do it
Want to show all the posts for a tag? - you can do it
Want to show all the post except those from a category? - you can do that
Want to show all stickies? - yup, you can do that too
does this answer your question? and you can set the orderby

to craft a query, go to http://codex.wordpress.org/Function_...ce/query_posts and read about creating queries
  #5  
Old Nov 11, 2010, 08:10 AM
mhone
 
5 posts · Jun 2010
No, sorry, I think I am not being clear.

I am trying to change the order in the category listings. Not in a page I am creating. It's the category post listing where I need to have the posts from the oldest to the newest.
ex. here:
http://www.milongaheads.com/category/month/5/

I don't think a new template will help me. I think you suggested somewhere else to use a post query plugin, but I cannot add other plugins to my websites as I am already using many of them.
Please let me know where to use the query post pagination parameters if possible.

Thanks
  #6  
Old Nov 12, 2010, 05:56 PM
juggledad's Avatar
juggledad
 
20,010 posts · Mar 2009
OSX 10.6.8/10.7.3 WP 2.8.x/2.9.x/3.x Atahualpa 3.5.x/3.7.x Safari 5.x Firefox 11 XP
1) create a page
20 assign the template to it
3) add a custom field called 'custom_query'
4) in the value field put 'cat=4&orderby=date&order=DESC' - make sure to change the 4 to your category ID

This will list the category so the oldest shows first

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] SEO and J Query text calculator Center area post/pages 2 Jul 11, 2010 10:21 PM
Custom Query String horsemansarts Plugins & Atahualpa 1 Jun 30, 2010 03:39 PM
Integration query djaef Header configuration & styling 1 Sep 13, 2009 12:51 PM
Sidebar query Axon Sidebars & Widgets 2 Feb 10, 2009 01:58 PM


All times are GMT -6. The time now is 08:11 AM.


Powered by vBulletin® Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.