You can override single.php
with your child theme. Add <?php the_post_thumbnail_caption() ?>
on line 110. You probably need to adjust some stylings too.
Thanks a lot it helped.
When you share a link somewhere, will the picture be picked up?
Sorry for the importunity, how to make the caption for the picture on all screens centered under the photo.
When you share a link somewhere, will the picture be picked up?
I’m sorry I don’t really get what that means. What is the link? Since it uses WordPress native thumbnail feature, you can do it as long as it supports.
To center it, make a HTML element so that you can style it easily like this: <p class="thumbnail-caption"><?php the_post_thumbnail_caption() ?></p>
And use the CSS code below:
.thumbnail-caption {
text-align: center;
}
Thanks. The answer to your question. For example, in the rss feed, when there is no photo in the article, he writes – there is no photo. Well, or when you share a post on other sites, usually when there is a picture inside the article, everything goes fine.
More precisely, paraphrasing, a thumbnail of the entry, somehow the same can be done as an internal picture of the article. For example, news sites have a thumbnail of the post and the main picture of the article.
I think you need to understand what is WordPress thumbnail feature? It looks like you are asking for something that’s far from themes that handle appearance, but plugins because you may want to extend WordPress’s thumbnail feature.
The code I suggested above just uses native WordPress feature. I think you can expect better answers to your question on the general WordPress forum because I’m not an expert for WordPress usage or finding plugins for your needs.