<? $why = is_page();
echo "About us";
echo "Latest News";
echo "Our community";
break; } ?>
Then the pages with that slug are calling or including (neither does work) the same side bar and I would like to display different content on each page.
The switch does work for the about page but not for the other two and I think I am going crazy :). I mean, if you click on the about page it shows what it’s in the echo for that case, but Default for the others.
is_page is supposed to get the slug, right?!
Another curious thing, if I get the about-us case on the second position in the switch, after the latest news, when I click on about-us page I have the echo from latest-news and the rest just on Default! WHY?!