WordPress.org

Support

Support » Plugins and Hacks » Since the query_post Function No Longer Works…

Since the query_post Function No Longer Works…

  • I used this code in the functions.php file for exclusion of categories:

    function exclude_category($query) {
    if ( $query->is_home ) {
    $query->set('cat', '-XX');
    }
    return $query;
    }
    add_filter('pre_get_posts', 'exclude_category');

    but after upgrade to v3.1 it results in fatal error. What is the way to do it now then?

Viewing 1 replies (of 1 total)
  • I’d post a picture of tits to get attention but I don’t think image embeds are allowed. What do I do then? Help pweeze :S

Viewing 1 replies (of 1 total)
  • The topic ‘Since the query_post Function No Longer Works…’ is closed to new replies.
Skip to toolbar