![]() |
Question about Archive query and Permalinks
Here's the page I'd like to discuss http://www.studio2055.com/dev/aero/?...p=alan-barge-2
and here's the code I used for the archive query at the top of the page (photos running at the top of the content) PHP Code:
Also, when I set a slug for a page, can I not ever use that on a different page? If you take a look at the slug of the page I posted, It says 2 at the end, even though I removed that same slug from another page that originally used it. Thanks! |
you may want to define the orderly/order values for your query. Then you can control the sorting. If you can't use a slug make sure it isn't being used. Even if something is in the trash it will be reserved.
|
thanks for the response nick. Ill check that out. I was just concerned that the archive order was only dependent on order of creation (which it seems like it is). I'm guessing I have to explicitly query the order, by publish date? I was assuming that was the default, but I guess not. I'll go ahead and look more into it and report back.
|
It is probably pulling by ID, which would be order of creation.
|
Ah, I see. That makes sense.
So I added this into the $arg array PHP Code:
Although this works for now, it kinda seems like a round about way of ordering things. In the future I might try other ways of ordering posts. Thanks! |
you can use orderby to set the sortable value. Like date, custom field ... all kinds of values can be used.
|
| All times are GMT -5. The time now is 03:22 PM. |
Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.