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 trial

WordPress WordPress Theme Development Custom Post Type Templates in WordPress The Portfolio Homepage

Carolina Longhini
Carolina Longhini
6,732 Points

Why are the images are breaking into a new line?

The layout for the Portfolio page is wrong for me. The images are breaking into a new line? Anybody had the same issue?

3 Answers

Adam Croom
Adam Croom
1,392 Points

I was having the same issue, but it turned out I forgot to set the featured image on some of the portfolio pieces.

If this doesn't resolve your issue, you might want to post your code on the page-portfolio.php for us to check out.

Adam Croom
Adam Croom
1,392 Points

I was having the same issue, but it turned out I forgot to set the featured image on some of the portfolio pieces.

If this doesn't resolve your issue, you might want to post your code on the page-portfolio.php for us to check out.

Carolina Longhini
Carolina Longhini
6,732 Points

Hi Adam,

Thanks a lot for this. I noticed my code was not all inside the <section></section> tags. That was causing the issue, now it is solved. Thanks again for answering :)