How can I set the values for category__not_in from two variables. On my example I just hardcode the ID of each category to exclude, but... how can I pass these values from some variables ?
$category_a = get_category_by_slug('fbrt');
$category_b = get_category_by_slug('contact');
$exclude = get_the_ID();
global $wp_query;
$exclude = $wp_query->post->ID;
$args = array(
'category_name' => 'olympic-physique',
'category__not_in' => array(1, 2),
'posts_per_page' => -1,
'orderby' => 'title',
'order' => 'DESC'
);