Content and title won't show on certain page in WordPress
-
I got one “front-page.php” that is a static one side page. If I use the WordPress loop to see my latest posts at the front-page.php they all shown up. Now I want to create a news page so I created a file “page-news.php”. Removed the loop code from front-page and pasted it into page-news. Though, nothing happens.
Loop code:
<?php get_header();?> <?php if (have_posts()): while (have_posts()): the_post();?> <?php the_title();?> <?php the_content();?> <?php endwhile; else: echo '<p>no posts were found</p>'; endif; ?> <?php get_footer();?>
What have I missed?
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘Content and title won't show on certain page in WordPress’ is closed to new replies.