Hey, I tried something like this and it interferes with all queries on the archive page. Including things in the sidebar, the wordpress native menu system, it all seems to get overridden. Any way around that? (I take it there isn't an archive specific filter)
–
Michael WatsonSep 14 '11 at 16:18

Still note sure if I got your Q (and what's your fn is supposed to do), but see update.
–
kaiser♦Sep 14 '11 at 17:46

@kaiser Using a slightly modified version of your code you posted above, but post_type=page is not working (it returns all of the results again) yet every other post type works as intended. I don't believe this is due to anything I added (basically I just pulled in all of the public post types in an array) -- have any thoughts on why it's not picking up on that?
–
ZachJun 27 '12 at 18:17

1

@Zach Take a look at the comments of this pastebin. Copypasta will never work out. Always go through stuff character by character, line by line. And always comment what stuff should do, before writing it. This way you won't loose your mind and it's easier to check.
–
kaiser♦Jun 27 '12 at 19:07

@kaiser really appreciate you making that - I'll make those modifications and see where I am with that. Thanks again!
–
ZachJun 27 '12 at 21:05