Classic case of =
instead of ==
, ie. you’re assigning values in a conditional statement, which always resolves to true:
if ( $need == "Option A") {
get_template_part('front/option-a');
}
Classic case of =
instead of ==
, ie. you’re assigning values in a conditional statement, which always resolves to true:
if ( $need == "Option A") {
get_template_part('front/option-a');
}