WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Page content duplicating (2 posts)

  1. green_lemon
    Member
    Posted 8 years ago #

    Thanks in advance,

    I have the following site structure,

    1) Front
    2) Dir
    2a) Page 2a
    2aa) Page 2aa
    2b) Page 2b
    2bb) Page 2bb
    2c) Page 2c
    2cc) Page 2cc

    Pages 2aa, 2bb, 2cc are using the same template.

    The Page content is being displayed using the following.

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <?php the_title(); ?>
    <?php the_content(); ?> <?php endwhile; endif; ?>

    Page 2aa is displaying content from Page 2bb and 2cc. Page 2aa content is not being displayed either.

    How do I change this?

  2. green_lemon
    Member
    Posted 8 years ago #

    This was a duplicate slug problem. Beware your slugs do not end in the same name.

Topic Closed

This topic has been closed to new replies.

About this Topic