I have a “static” page set up as my front page for WordPress.
I have this in the index.php file:
<?php
if (is_front_page() || is_home()) {
?><p>TEST FRONT PAGE</p>
<?php
} ?>
For some reason, the “TEST FRONT PAGE” does not show up on the front page, but does show up on the posts page (as it should, for these purposes only)…I’m using WordPress 3.0, and I tested this on the twentyten template itself!
Anyone know why?
Thanks,
Amit
Because the front page is loading from front-page.php not index.php.
EDIT
It’s loading from page.php. You can read more about the template hierarchy here:
http://codex.wordpress.org/Template_Hierarchy