Problem with is_page
-
I’m been attempting to get the following chunk of code to work but it does not seem to. If I remove the “25” parameter from the is_page function, it works fine, but as soon as I enter any type of paramter (page ID, page-slug or page title) for any page, it simply falls through to the else option. Can someone advise me on what I’m doing wrong here? Thanks!
<h4><?php if (is_page('25')) { _e('Tracks:'); } else { _e('Links:'); } ?></h4>
<ul class="mnav">
<?php if (is_page('25')) { wp_get_links('3'); } else { wp_get_links('1'); } ?>
</ul>
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
The topic ‘Problem with is_page’ is closed to new replies.