Creating Loop on WordPress Page
So I’m trying to get my page I created in wordpress named “blog” to populate with blog posts. I’ve taken the twenty-ten loop and inserted it into this page
<div id="container"> <div id="content" role="main"> <?php get_template_part( 'loop', 'page' );?> <?php if (have_posts()) : ?><?php while (have_posts()) : the_post(); ?> </div><!-- #content --> </div><!-- #container -->
but I get no posts. all my references are the same…this website is me altering the twenty-ten template.
I’m sure I’m going about this backwards but I’m kind of stuck with this approach cause I’m too deep to turn back. Can you help me Please??!! Dying over hyere.
Thank you in advanced!!
- The topic ‘Creating Loop on WordPress Page’ is closed to new replies.