Need to display posts on a custom page – Starkers
-
Hello, excuse the n00b-ness of this but for some reason I can’t figure it out!
I’m using Starkers and want to put all blog posts on a custom page called “Blog”. The posts are present in the backend, but when I run the loop on the custom page nothing happens. Here’s the code I’m using (I copied it from the index.php that came with the theme):
<?php /* Template Name: Blog */ ?> <?php get_header(); ?> <div id="main"> <h1>Blog</h1> <?php /* Run the loop to output the posts. * If you want to overload this in a child theme then include a file * called loop-index.php and that will be used instead. */ get_template_part( 'loop', 'index' ); ?> </div> <?php get_footer(); ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button.]
I’ve tried changing the Reading settings in the dashboard but that doesn’t seem to have any effect. I don’t know what I’m doing wrong. Any insight? All help appreciated!
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Need to display posts on a custom page – Starkers’ is closed to new replies.