is_page() not working
-
Heya
in my header, i have a title thats made up of conditional tags that cater for every possible WP page…
ie:
(is_single() || is_page())
however as of 2.5, if the page has children, the above doesnt work…
I have:
<? if (is_single() || is_page()) { ?><? single_post_title(); ?> | <? bloginfo('name'); ?> | <? bloginfo('description'); ?>
that caters for posts and pages…
But:
Post: https://www.j-signage.co.za/hello-world/ – has the correct title
Page (no children): https://www.j-signage.co.za/contact/ – correct
Page (with children): https://www.j-signage.co.za/services/ – incorrectwats the workaround on this?
thanks for you help
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘is_page() not working’ is closed to new replies.