Show posts on a template page
-
Is it possible to display posts on a page that isn’t set up as the Posts page under Settings > Reading?
The reason is that when I do this, it messes up the styling entirely. I have a template that I’ve created custom, and I’m using this code:
if (have_posts()) : while (have_posts()) : the_post(); the_content(); endwhile; endif;If I set the page as my Posts page under Reading, the styling’s screwed up. If I don’t set it as the Posts page, no posts show up. Is there any way to force posts to appear here without setting it as the blog page? Thanks!
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
The topic ‘Show posts on a template page’ is closed to new replies.