Snippet to make featured images appear on posts page? Hook into post thumbnail.
-
Using the Blask theme.
As the demo clearly shows, the featured images DO NOT appear on the posts page. This is expected and documented behavior. It was built that way. (We’re not talking about the individual posts themselves but rather the “posts page”.)
But that kind of looks, well, not very appealing. It’s a visual world, etc.
So I devised a work around. I put an HTML image tag in the manual excerpts box, and, voila, an image appears above the excerpt in the posts page. Much better. Looks even how a featured image should look if Blask had been designed with that in mind.
None of this has anything to do with the featured images appearing in the actual posts themselves OR the featured images used as the link to the projects on the portfolio grid.
What snippet do I have to use to avoid this work around? It’s something to do with adding or changing a line in one of the PHP pages “to hook into the post thumbnail”. I’ve gotten that far.
What is the exact line of code and which PHP file does it go into?
This can’t be that far off the wall, because plenty of other themes show the “post thumbnail” AKA featured image on the posts page.
I don’t wish to change themes or use the “posts bloc”. I realize those are options, but they don’t work for this project.
Thank you for your suggestions.
The blog I need help with is: (visible only to logged in users)
-
Hi again! I don’t have the code for this, and custom development like that is outside the scope of what we can offer as support.
But I can say, if you make a child theme that adds an excerpt to the portfolio page, I’d imagine that adding the featured image to the individual project pages should be a relatively simple addition.
These folks can make a recommendation if needed: https://wordpress.com/built-by-wordpress-com/
- The topic ‘Snippet to make featured images appear on posts page? Hook into post thumbnail.’ is closed to new replies.