multiple if statements [closed]

Each of your if statements have the same has_term('NBS_CONS', 'broad_type_nbs' ) function. This could be put in a variable for reuse instead.

& Your argument for each if statement is actually very consistent, so much so you could probably reduce it by just putting your varying data in an array, loop though, and use Variable variables:

while ( $actionType_query->have_posts() ) {
    $actionType_query->the_post();
    $data = [
        'a' => 'AGF',
        'b' => 'CMA',
        'c' => 'FOR',
        'd' => 'GRA',
        'e' => 'MON',
        'f' => 'RIV',
    ];
    $broad_type_nbs = has_term('NBS_CONS', 'broad_type_nbs' );
    foreach ($data as $k => $v) {
        if ($broad_type_nbs && has_term('NBS_'.$v, 'ecosystem_nbs')) {
            ${'cons_'.$k}++;
        }
    }
}