How to put images in Posts Page
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 :)
Recent Comments
5
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
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.
See more comments
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:)