Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialEric Huffman
12,472 PointsWhy is Wordpress showing duplicates of the most recent blog post on my blog listing page?
I have been building my theme for Wordpress and have included a blog to the site. The blog posts appear, but the last post in the listing is also showing a duplicate copy. If I click on a single post, there will be a duplicate of that post on the single page. I'm thinking this may have something to do with when I tried converting my static html into php. Could someone point me in the right direction?
1 Answer
Zac Gordon
Treehouse Guest TeacherYup! Those div placements make all the difference! Glad you worked it out :)
Eric Huffman
12,472 PointsEric Huffman
12,472 PointsNevermind, I figured out why I was having this issue. If you keep the "<?php get_template_part( 'content', 'post' ); ?>" outside of your div, even after you have moved it inside to generate posts, this will interpret it as having to display the post again.