Post Template Works, Page Template Breaks
-
Hi Guys
Quick word, I am creating content for specific sections on my Roots Theme with Insert Pages. I seem to be running into problems when I use a page as the content to be inserted with a custom template. However, when I use a post with a custom template, the content works flawlessly. To simplify things, Ive used the basic wordpress loop as follows for both page and post templates:
<?php if ( have_posts() ) { the_post(); ?> <div style="color:#fff"> <h1><?php the_title(); ?></h1> <?php the_content(); ?> </div> <?php } // end if ?>
Appreciate all the help.
Thanks!
Stephen
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Post Template Works, Page Template Breaks’ is closed to new replies.