Template: Page as a front page
-
Hello, I am trying to create my first template.
I want a static page to be shown on the front page of the site – i changed that in the Settings>Reading.
The issue I have is that there are all pages shown on the front page.
My page.php has the following loop:<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<h2><?php the_title(); ?></h2>
<?php
the_content();
endwhile; endif; ?>Which shows all pages on the front page.
I probably overlooked something, is there any way how to show a single page (the one selected in the Reading settings) only on the front page?
I use WP 2.8.4,
cheers Meereck
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Template: Page as a front page’ is closed to new replies.