Help PHP, Wordpress page
Help PHP, Wordpress page
Out of context: Reply #6
- Started
- Last post
- 6 Responses
- fugged0
based on the code, you've opened and closed the if statement in the sidebar include, but then try to close the if statement again in page.php. Unless there is another if statement that isn't included in your example code, then the issue is the extra endif in the page.php file.
If you were intending the endif in page.php to close the if statement from the sidebar, then you'd need to remove the endif from the sidebar include. But, I suspect this isn't the case. And if it is, it's poor form to open an if statement in an include and close it another file.