How to show the featured image only, not the whole gallery?
URL to the page in question:
-
Hello,
I would like to show only the “featured image” instead of all pics from that gallery, in my post pages. This is an example: http://www.argia.com/blogak/begizta/?p=207
That post gots 10 pictures and one of them is the “featured image”. The problem is that the “Gallery On Single View” option is set to yes, that page shows all the pics before the content. And I would like to show just the featured one and show the rest of the gallery’s pics as now, after the first paragrafe or wherever: http://www.argia.com/blogak/begizta/?p=207
Thanks and regards
Axier
Axier,
You can edit the theme so it will display the featured image on individual posts. Here’s how:
- Go to the Appearance section and select Edit.
- From the list of files on your right, choose single.php and find this spot:
<h1><?php the_title(); ?></h1>
- Right above that paste this:
- Save your changes.
That will cause the featured image to be displayed at the top of the post, just above the title.
If you have any trouble, let me know,
Bill
Great, that’s exactly what i needed.
Thank you very much!
Axier
Fantastic. If you need anything else, let me know.
Have a great weekend,
Bill
- The topic ‘How to show the featured image only, not the whole gallery?’ is closed to new replies.