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

Dan Curtis
Dan Curtis
19,889 Points

Using get_post_thumbnail for page header image on blog page conflicts with thumbnail from last post

Hi All,

Making a site that has a different header image on each page, in order to do this I am using the get_post_thumbnail to display the featured image set by the user as the page header. And it works perfectly, until I get to the blog page, Then the last posts thumbnail / featured image overrides the page header thumbnail.

Any Ideas?

Pedro Henrique Santos
Pedro Henrique Santos
5,511 Points

Could you provide the whole code of the blog page?