Else If Statement not working
-
Hi,
I have this elseif statement and last 2 elseif is not working. The catid is correct.Please help!
$catID != 0;
if (is_page(‘Training & Fitness’)) {
$catID=55;
} elseif (is_page(‘Health & Nutrition’)) {
$catID=26;
} elseif (is_page(‘Hair & Beauty’)) {
$catID=58;
} elseif (is_page(‘Fashion’)) {
$catID=58;
}if ($catID) {
$paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1;
query_posts(“cat=$catID&paged=$paged”);
} ?>
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Else If Statement not working’ is closed to new replies.