• @joyously, I have seen a couple of threads where you detail the difference between a standard page and the “forfeited” blog page, and why that disallows a Featured Image on that template page created to house blog posts. Do you have any ideas as to how to add a Featured Image there in the header (like the other pages) by way of plugin, add-on, or snippet of code (or edited php file in the /wp-content folder)? Thanks in advance for your help!
    -Steve

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • I don’t remember saying exactly that.
    The template hierarchy for the posts index page looks for home.php and then index.php. There is never a page template applied. The query is modified to be for the list of posts, so I’m not even sure why it works, but you can use single_post_title() before the loop and it will output the page title that you forfeited. I suppose at that point (before the loop), you might be able to get the featured image as well with the_post_thumbnail(), or use the ID in the option page_for_posts. This can be done in home.php or index.php, but you have to check whether the options are set for static page or not (or there will be no image to get).
    I use if ( is_home() && ! is_front_page() ) for showing the title.

    Thread Starter 3cstudio

    (@3cstudio)

    OK, thanks so much @joyously … I’ll look at this further. Thanks again!
    -Steve

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘blog page Featured Image’ is closed to new replies.