Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   query post (http://forum.bytesforall.com/showthread.php?t=11102)

mhone Nov 11, 2010 03:55 AM

query post
 
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

juggledad Nov 11, 2010 04:59 AM

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.

mhone Nov 11, 2010 07:01 AM

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

juggledad Nov 11, 2010 07:28 AM

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

mhone Nov 11, 2010 08:10 AM

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

juggledad Nov 12, 2010 05:56 PM

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


All times are GMT -6. The time now is 07:45 PM.

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