• Hi! I’m working in Thesis theme, but I’ve posted this over on their forums and the feeling is that it is a WP question, so here goes….

    When I posted this php code, every time it’s called {sometimes I run it “if (is_category())” like here, and sometimes for archives, tags, whatever} whenever this code is called, it returns EVERY post, whether it actually is in that category, or not. What could be causing this??

    /* ARCHIVE PAGE POSTS GOING BACKWARDS */
    
    function reorder_posts() {
    if (is_category()) {
    global $query;
        query_posts($query . 'order=ASC');
        }
    }
    add_action('thesis_hook_before_content','reorder_posts');

    THANK YOU VERY MUCH in advance if you can help!

    OH, and the site is MysticScribbles.com and you can view category #2 (which only has one post at the very very end of the page) HERE.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Post ascending order (weird results)’ is closed to new replies.