telophase: (Default)
telophase ([personal profile] telophase) wrote2010-06-30 06:56 pm

GAH

FINAL UPDATE: GOT IT. A rogue plugin. I have no idea why it was affecting just *that* cateogry, and no idea why I can't find the proper category numbers in WP 3.0, but at least the updates are sorting correctly. GAH.

OKAY IT WASN'T SUCH A FINAL UPDATE FIxed that page. Screwed up the Panelists and Guests of Honor category pages. GAH.

==================================================================

The Arras theme in Wordpress simply insists on ordering category page results in chronological order, which MAKES NO SENSE.

See? http://www.condfw.org/category/update/

No clue yet how to fix it. GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHH

Update: STILL NO CLUE. This SHOULD work:


<?php if (is_category('9')) { $posts = query_posts($query_string. '&orderby=date&order=DESC' ); } ?>


Assuming that I'm getting the category number correct, that is. WP seems to have changed that in 3.0, so that cat_ID doesn't show up, instead tag_ID does, which doesn't seem to be effective in the above code. I had to go to a test install of WP that I used several months ago to mess about with the site to see what the category number USED to be. And the reason I think it's using what the category number used to be is...it's using that for the Guests of Honor and Panelists category pages. If I change those in a similar bit of code to the above to the tag_ID, then it FAILS.

Update again: STILL WEIRDER.

OK, so THIS still shows the update posts (category 9) in chronological order instead of reverse chronological order (and no, changing DESC to ASC does not re-order them, either):

<?php $posts = query_posts($query_string. '&cat=9&orderby=date&order=DESC' ); ?>


However, THIS:

<?php $posts = query_posts($query_string. '&orderby=date&order=DESC' ); ?>


gets ALL posts ... and orders them in reverse chronological order! Exactly as it should work! WHAT GIVES?!

[identity profile] sleary.livejournal.com 2010-07-01 12:44 am (UTC)(link)
Its archive file is doing something very weird. Copy it to category.php and replace that part with a normal loop, and it should be fine.

[identity profile] telophase.livejournal.com 2010-07-01 02:35 am (UTC)(link)
Although I continue to agree that very, very weird things are happening here, I have discovered that my Alphabetize custom field was inexplicably empty, hence it not grabbing any posts. Actually, I have no idea why it wasn't grabbing them, because it should just not worry about sorting them, but I AM NOT GOING TO DEVOTE ANY MORE BRAIN SPACE TO THIS TONIGHT.

I'll just tell Dan to redo the Alphabetize field as he puts new panelists on the site. Whee! Work someone else can do!