“if” statement is messing my page.php somehow?
-
I’m trying to show news in a sidebar on homepage.
(the whole thing is in pastebin.)
As soon as I ad this… (on line 11)
<?php if (is_page('4')) { get_sidebar(); } ?>
…to get the sidebar, then the page content is not showing at all. I have two posts in the sidebar and they show where the Page content should be. The sidebar if fine though, but where’s the Page content?
The first “if” on line 3 has no effect to this, I tried to remove it and same happens.
Hope someone can help, thank you so much!
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘“if” statement is messing my page.php somehow?’ is closed to new replies.