is_home function – Same content, different pages
-
Hi Everyone,
I’m having an issue with the is_home function…
In the post.php page, I have this function:
<h2 class="pagetitle"><?php if(is_home()) { echo 'pxLabs - Web and Interactive Agency'; } else { wp_title(''); echo' - Web and Interactive Agency'; } ?></h2>
However, on all my pages, it only displays (page title) – Web and Interactive Agency… I created a home.php file thinking that this might solve the problem however, that wasn’t it.
Clearly there is something wrong with the code, but I can’t see it. Anyone have any ideas?
Thanks,
Justin
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘is_home function – Same content, different pages’ is closed to new replies.