Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

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

query post


  #1  
Old Nov 11, 2010, 04: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, 05:59 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Nov 11, 2010, 08: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, 08:28 AM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #5  
Old Nov 11, 2010, 09: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, 06:56 PM
juggledad's Avatar
juggledad
 
23,597 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

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 11:21 PM
Custom Query String horsemansarts Plugins & Atahualpa 1 Jun 30, 2010 04:39 PM
Integration query djaef Header configuration & styling 1 Sep 13, 2009 01:51 PM
Sidebar query Axon Sidebars & Widgets 2 Feb 10, 2009 02:58 PM


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


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