2.5 is_page(array… issues :(
-
Hi,
I’ve got WP 2.5.
And I have a page on my web site called ‘Career Development’, currently accessed by index.php?page_id=30. So I’ve added the following to my sidebar, so that if I’m on that page, the link will be bold…..except it doesn’t work ??
<? if (is_page(array(30,'career-development','Career Development'))) { echo '<li class="bold"><a href="index.php?page_id=30">Career Development</a></li>'; } else { echo '<li><a href="index.php?page_id=30">Career Development</a></li>'; } ?>
I obviously have a .bold {font-weight:bold} in my CSS.
It works for my is_category() if statements, but just not this ??
Can anyone make any suggestions why it isn’t working?
Many thanks!
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘2.5 is_page(array… issues :(’ is closed to new replies.