short entry image

Good morning, I want that if the post is an image displayed on the short entry
I read that is something we must change
<? Php the_excerpt (); ? >

for

<? Php
global $ post;
if ($ post-> post_excerpt) {
the_excerpt ();
} else {
the_content ();
}
? >

but not where place

thank you very much

Hi @lliwo,

I hope you are well today and thanks for posting here.

Do you want to display the post featured image on the posts listing page where the short post excerpt is displayed?

Could you please share me that page URL from your site?

Kind Regards,
Movin

Thanks

www.oficomputer.com

The first post “Campaña escolar” have a image , I would like the image to appear in the short entry

Hi @lliwo,

You can display the image on the post listings blog page by setting that image as featured image in the “Campaña escolar” post edit page as shown in the attached screenshot.

Best Regards,
Movin

Thanks Movin

The image is cut off above, as fix it ?

I send you the image

Best regards

A better explanation below

Hi @lliwo,

I just tested it on your site http://www.oficomputer.com/ and found the whole image is displaying there as shown in the attached screenshot.

Have you managed to display the image without cutting?

Please advise.

Regards,
Movin