• Hi guys,

    I use this bit of code quite a lot:

    <?php if (is_home()) : ?>
    <h1>....title...</h1>
    <p>...content etc...</p>
    
    <?php endif; ?>

    …which is all you need if you want to hard code some content into the home page which will not appear on any other page which uses the same template.

    That works fine but it doesnt stop the content appearing on the other “older posts” pages. Does anyone know how or what codex i need to ensure that content only displays on the very top page?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Displaying Content only on the home page’ is closed to new replies.