• in /includes/functions.php you need to change one line to be able to select multiple categories.
    (code starts on line 252)

    // Limit posts based on category.
    if ( ! empty( $args[‘cat’] ) ) {
    ########## CHANGE THIS LINE ##########
    $query[‘category__in’] = $args[‘cat’];
    }

    ########## CHANGE TO THIS ##########
    $query[‘category__in’] = explode(“,”,$args[‘cat’]);

The topic ‘multiple categories’ is closed to new replies.