Support » Alpha/Beta/RC » wp_query exclude categories not working

  • Resolved cogmios

    (@cogmios)


    fyi in 3.1. RC4 Trunk this did not work anymore;

    global $wp_query;
    $wp_query->set('cat', '-14,-1172,-867');
    $wp_query->set('posts_per_page', 12);
    $posts = $wp_query->get_posts();
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_query exclude categories not working’ is closed to new replies.