Only show div on homepage/blog index in wordpress/php April 13, 2022 by Tarik Billa See: http://codex.wordpress.org/Function_Reference/is_home <?php if(is_home()): ?> <div>Your div.</div> <?php endif; ?>