Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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

query post


  #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
 
23,765 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, 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
 
23,765 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, 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
 
23,765 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 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 04:35 PM.


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