How to put images in Posts Page

10
5
3.5K followers

My theme apparently doesn't have the thumbnail image in my Posts Page. I have searched for 3 days to find out how to put them in there and this is the solution that I found.

** Before making any changes to your theme files make sure you create a child theme so updates to your theme won't wipe out all your changes! **

go to WP admin

Appearance/Editor

On the right side click on content.php


To put the image above the title find this line of code:

<?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

and paste this over it:

<?php the_post_thumbnail('thumbnail'); the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>

To put the image below the title put this line of code:

<?php the_post_thumbnail('thumbnail'); ?>

right above this code:

<div class="entry-content">

Update the file and you should be good to go!

Sorry but I don't know how to put the image anywhere else but if you need it somewhere else and you figure it out please let me know. I would like for my images to be on the left of the title. I have tried everything I know.

Tai Chi Charley :)

10
5

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

Recent Comments

5

There is a more simplier way, what I just found out.When you edit the post, there is down down after tags a featured image tab. Put there your image and it will be okay:)

Thanks for the valuable tip!

1

Hi, TaChi,
1. go to dashboard -
2. click post/pages,
3. click ad media-
4. upload images or drag & drop-
5. click the box at the bottom "insert" -
6. the uploaded image will appear in your post/page-
7. at the top of the image there are squares to position your image, left center, right.
Hope this will assist

3

That was one of the first things I tried. It is the proper way to put a image in the Posts Page but I believe that my template doesn't allow for the images to show in Posts Page. So I had to find a way to do it and this was the only solution I could find.

When I write post/page, I normally use "visual" I'm not good at "text"but after I wrote, I also check "text" version.

1

See more comments

Join FREE & Launch Your Business!

Exclusive Bonus - Offer Ends at Midnight Today

00

Hours

:

00

Minutes

:

00

Seconds

2,000 AI Credits Worth $10 USD

Build a Logo + Website That Attracts Customers

400 Credits

Discover Hot Niches with AI Market Research

100 Credits

Create SEO Content That Ranks & Converts

800 Credits

Find Affiliate Offers Up to $500/Sale

10 Credits

Access a Community of 2.9M+ Members

By continuing, you agree to our Terms of Service and Privacy Policy
No credit card required

2.9M+

Members

190+

Countries Served

20+

Years Online

50K+

Success Stories

The world's most successful affiliate marketing training platform. Join 2.9M+ entrepreneurs building their online business with expert training, tools, and support.

© 2005-2025 Wealthy Affiliate
All rights reserved worldwide.

🔒 Trusted by Millions Worldwide

Since 2005, Wealthy Affiliate has been the go-to platform for entrepreneurs looking to build successful online businesses. With industry-leading security, 99.9% uptime, and a proven track record of success, you're in safe hands.