Display single page information on page
-
Hi,
Probably really simple but, I can’t get it working.I have a page.php (also page-home.php and page-menu.php) and the website has 4 pages now (in WP).
To load the page data i use the loop:
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<?php the_content(); ?>
<?php endwhile; ?>
But this loops the code 4 times, and thus shows the_content() of all 4 pages, in stead of the current page. What am I doing wrong?
(i Tried googling, but not getting the right results)
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Display single page information on page’ is closed to new replies.