Which php code? Text area above posts only on homepage
You’re close, you just misunderstood how to properly use is_home(). Probably because the Usage section of is_home() in the Codex is misleading. Change the first line to:
<?php if( is_home() ): ?>and then add this line after all your conditional html:
<?php endif; ?>. Note the different use of colon vs. semi-colon.
- The topic ‘Which php code? Text area above posts only on homepage’ is closed to new replies.