Forums

[resolved] Template: Page as a front page (2 posts)

  1. meereck
    Member
    Posted 3 months ago #

    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

  2. meereck
    Member
    Posted 3 months ago #

    oops, I have found the culprit:
    In Settings>Reading, I had the same page set as a Front page and Posts page as well.
    This was causing the problem.
    cheers

Reply

You must log in to post.

About this Topic