• YazzH

    (@yazzh)


    I have a parallax website that I needed to make editable using wordpress.

    I installed the 2013 theme and took the index.php default file.

    I took this section of code:

    <?php if ( have_posts() ) : ?>
    			 <?php while ( have_posts() ) : the_post(); ?>
    				<?php get_template_part( 'content', get_post_format() ); ?>
    			<?php endwhile; ?>
    
    			<?php twentythirteen_paging_nav(); ?>
    
    		<?php else : ?>
    			<?php get_template_part( 'content', 'none' ); ?>
    		<?php endif; ?>

    And pasted it inside one of the section of my parallax site. And it works, I can edit that section now using the posts. However, I tried placing this same code down below on the same page and it repeats the same post from above.

    I tried making a new post, and both sections display both posts.

    I need to edit the code so that I can edit each section separately, and with each section only displaying the post I want.

  • The topic ‘Posts are looping 2013 theme custom.’ is closed to new replies.