{"id":4014,"date":"2013-03-12T00:20:08","date_gmt":"2013-03-11T22:20:08","guid":{"rendered":"https:\/\/romul.name\/blog\/wordpress-featured-image-display-image-caption\/"},"modified":"2022-03-14T17:34:54","modified_gmt":"2022-03-14T15:34:54","slug":"wordpress-featured-image-display-image-caption","status":"publish","type":"post","link":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/","title":{"rendered":"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail"},"content":{"rendered":"\n<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.9, \u0432 \u0412\u043e\u0440\u0434\u041f\u0440\u0435\u0441\u0441 (<em><a href=\"https:\/\/romul.name\/ru\/wordpress\/\">WordPress<\/a><\/em>) \u0432\u0432\u0435\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u00ab\u041c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u0438\u00bb (<em>Featured Image<\/em>), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0435\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b <em>functions.php<\/em> \u0432\u0430\u0448\u0435\u0439 <strong>WordPress \u0442\u0435\u043c\u044b<\/strong>, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>add_theme_support( 'post-thumbnails' );<\/code><\/pre>\n\n\n\n<p>\u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"299\" height=\"90\" src=\"http:\/\/romul.name\/wp-content\/uploads\/2013\/03\/Featured-image-Display-image-caption-1.png\" alt=\"Featured-image---Display-image-caption-1\" class=\"wp-image-958\"\/><\/figure>\n\n\n\n<p>\u0418 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435:<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"299\" height=\"224\" src=\"http:\/\/romul.name\/wp-content\/uploads\/2013\/03\/Featured-image-Display-image-caption-2.png\" alt=\"Featured-image---Display-image-caption-2\" class=\"wp-image-959\"\/><\/figure>\n\n\n\n<p>\u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u043c\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 <em>the_post_thumbnail()<\/em>:<\/p>\n\n\n<p>add_theme_support( &#8216;post-thumbnails&#8217; );<\/p>\n\n\n\n<p>\u041d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u043d\u043e \u0438 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438\u043b\u0438 \u0436\u0435 \u0432 \u00ab\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u00bb (<em>Media Library<\/em>) \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (<em>WordPress<\/em>)? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f <em>the_post_thumbnail()<\/em> \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (<em>WordPress<\/em>) \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 (\u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438). \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 <em>functions.php<\/em> \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>function the_post_thumbnail_caption() {\n    global $post;\n \n    $thumbnail_id    = get_post_thumbnail_id($post-&gt;ID);\n    $thumbnail_image = get_posts(array('p' =&gt; $thumbnail_id, 'post_type' =&gt; 'attachment'));\n \n    if ($thumbnail_image &amp;&amp; isset($thumbnail_image&#91;0])) {\n        echo '&lt;span&gt;'.$thumbnail_image&#91;0]-&gt;post_excerpt.'&lt;\/span&gt;';\n        }\n    }<\/code><\/pre>\n\n\n\n<p>\u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>the_post_thumbnail_caption()<\/em> \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 <strong>\u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0442\u0435\u043c\u0443<\/strong>.<\/p>\n\n\n\n<p>\u041a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044e <em>the_post_thumbnail<\/em>, \u0442\u0430\u043a \u0438 <em>the_post_thumbnail_caption<\/em> \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435 <em>WordPress (the loop)<\/em>. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?php if (have_posts()) : ?&gt;\n&lt;?php while (have_posts()) : the_post(); ?&gt;\n&lt;article class=\"single\"&gt;\n    &lt;div class=\"date\"&gt;&lt;?php the_date('M j Y', '', ''); ?&gt;&lt;\/div&gt;\n    &lt;h1&gt;&lt;a href=\"&lt;?php the_permalink(); ?&gt;\" title=\"&lt;?php the_title(); ?&gt;\"&gt;&lt;?php the_title();?&gt;&lt;\/a&gt;&lt;\/h1&gt;\n        &lt;?php if (  has_post_thumbnail()  )  {\n            echo '&lt;div class=\"thumb\"&gt;';\n            the_post_thumbnail();\n            the_post_thumbnail_caption();\n            echo '&lt;\/div&gt;';\n            } ?&gt;\n    &lt;div class=\"author\"&gt;By &lt;?php the_author_posts_link(); ?&gt;&lt;\/div&gt;\n    &lt;?php the_content( 'more...' ); ?&gt;\n&lt;\/article&gt;\n&lt;?php endwhile; ?&gt;\n&lt;?php endif; ?&gt;<\/code><\/pre>\n\n\n\n<p>\u0418 \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435, \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u043f\u043e\u0434 \u043d\u0435\u0439 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" width=\"649\" height=\"264\" src=\"http:\/\/romul.name\/wp-content\/uploads\/2013\/03\/Featured-image-Display-image-caption-3.png\" alt=\"Featured-image---Display-image-caption-3\" class=\"wp-image-960\" srcset=\"https:\/\/romul.name\/wp-content\/uploads\/2013\/03\/Featured-image-Display-image-caption-3.png 649w, https:\/\/romul.name\/wp-content\/uploads\/2013\/03\/Featured-image-Display-image-caption-3-300x122.png 300w\" sizes=\"(max-width: 649px) 100vw, 649px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.9, \u0432 \u0412\u043e\u0440\u0434\u041f\u0440\u0435\u0441\u0441 (WordPress) \u0432\u0432\u0435\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u00ab\u041c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u0438\u00bb (Featured Image), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0435\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b functions.php \u0432\u0430\u0448\u0435\u0439 WordPress \u0442\u0435\u043c\u044b, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c: \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a: \u0418 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u043c\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail(): \u041d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u043d\u043e \u0438 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438\u043b\u0438 \u0436\u0435 \u0432 \u00ab\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u00bb (Media Library) \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (WordPress)? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f the_post_thumbnail() \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (WordPress) \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 (\u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438). \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 functions.php \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e the_post_thumbnail_caption() \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0442\u0435\u043c\u0443. \u041a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044e the_post_thumbnail, \u0442\u0430\u043a \u0438 the_post_thumbnail_caption \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435 WordPress (the loop). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a: \u0418 \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435, \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u043f\u043e\u0434 \u043d\u0435\u0439 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a.<\/p>\n","protected":false},"author":1,"featured_media":4016,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[82,55],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail - \u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail - \u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\" \/>\n<meta property=\"og:description\" content=\"\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.9, \u0432 \u0412\u043e\u0440\u0434\u041f\u0440\u0435\u0441\u0441 (WordPress) \u0432\u0432\u0435\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u00ab\u041c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u0438\u00bb (Featured Image), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0435\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b functions.php \u0432\u0430\u0448\u0435\u0439 WordPress \u0442\u0435\u043c\u044b, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c: \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a: \u0418 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u043c\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail(): \u041d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u043d\u043e \u0438 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438\u043b\u0438 \u0436\u0435 \u0432 \u00ab\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u00bb (Media Library) \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (WordPress)? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f the_post_thumbnail() \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (WordPress) \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 (\u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438). \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 functions.php \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e the_post_thumbnail_caption() \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0442\u0435\u043c\u0443. \u041a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044e the_post_thumbnail, \u0442\u0430\u043a \u0438 the_post_thumbnail_caption \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435 WordPress (the loop). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a: \u0418 \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435, \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u043f\u043e\u0434 \u043d\u0435\u0439 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\" \/>\n<meta property=\"article:published_time\" content=\"2013-03-11T22:20:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-03-14T15:34:54+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/romul.name\/wp-content\/uploads\/2013\/03\/the_post_thumbnail.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1024\" \/>\n\t<meta property=\"og:image:height\" content=\"670\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Roman\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/romul.name\/#website\",\"url\":\"https:\/\/romul.name\/\",\"name\":\"\u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\",\"description\":\"\u0414\u0438\u0437\u0430\u0439\u043d \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0430\u0439\u0442\u043e\u0432. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u0432\u0435\u0440\u0441\u0442\u043a\u0430, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 WordPress \u0441\u0430\u0439\u0442\u043e\u0432.\",\"publisher\":{\"@id\":\"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/romul.name\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\",\"url\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\",\"name\":\"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail - \u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\",\"isPartOf\":{\"@id\":\"https:\/\/romul.name\/#website\"},\"datePublished\":\"2013-03-11T22:20:08+00:00\",\"dateModified\":\"2022-03-14T15:34:54+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/romul.name\/ru\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail\"}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\"},\"author\":{\"name\":\"Roman\",\"@id\":\"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab\"},\"headline\":\"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail\",\"datePublished\":\"2013-03-11T22:20:08+00:00\",\"dateModified\":\"2022-03-14T15:34:54+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/\"},\"wordCount\":41,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab\"},\"articleSection\":[\"Wordpress\",\"\u0411\u043b\u043e\u0433\"],\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#respond\"]}]},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab\",\"name\":\"Roman\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"https:\/\/romul.name\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/130d81d5074019013634dc3d84a4445d?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/130d81d5074019013634dc3d84a4445d?s=96&d=identicon&r=g\",\"caption\":\"Roman\"},\"logo\":{\"@id\":\"https:\/\/romul.name\/#\/schema\/person\/image\/\"},\"sameAs\":[\"https:\/\/romul.name\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail - \u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/","og_locale":"ru_RU","og_type":"article","og_title":"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail - \u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a","og_description":"\u041d\u0430\u0447\u0438\u043d\u0430\u044f \u0441 \u0432\u0435\u0440\u0441\u0438\u0438 2.9, \u0432 \u0412\u043e\u0440\u0434\u041f\u0440\u0435\u0441\u0441 (WordPress) \u0432\u0432\u0435\u043b\u0438 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043b\u0435\u0437\u043d\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e \u043d\u0430\u0437\u044b\u0432\u0430\u0435\u043c\u0443\u044e \u00ab\u041c\u0438\u043d\u0438\u0430\u0442\u044e\u0440\u0430 \u0437\u0430\u043f\u0438\u0441\u0438\u00bb (Featured Image), \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u0440\u0438\u0432\u044f\u0437\u0430\u0442\u044c \u043a \u043a\u0430\u0436\u0434\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u0438\u043b\u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435. \u0427\u0442\u043e\u0431\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u044d\u0442\u0443 \u0444\u0443\u043d\u043a\u0446\u0438\u044e, \u0435\u0435 \u0441\u043d\u0430\u0447\u0430\u043b\u0430 \u043d\u0443\u0436\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u0438\u0440\u043e\u0432\u0430\u0442\u044c. \u0414\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0444\u0430\u0439\u043b functions.php \u0432\u0430\u0448\u0435\u0439 WordPress \u0442\u0435\u043c\u044b, \u043d\u0443\u0436\u043d\u043e \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0443\u044e \u0437\u0430\u043f\u0438\u0441\u044c: \u041f\u043e\u0441\u043b\u0435 \u044d\u0442\u043e\u0433\u043e \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441\u0430 \u043f\u043e\u044f\u0432\u0438\u0442\u0441\u044f \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0439 \u0431\u043b\u043e\u043a: \u0418 \u043c\u043e\u0436\u043d\u043e \u043d\u0430\u0437\u043d\u0430\u0447\u0430\u0442\u044c \u0434\u043b\u044f \u0437\u0430\u043f\u0438\u0441\u0435\u0439 \u0438 \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u0435: \u0422\u0435\u043f\u0435\u0440\u044c \u044d\u0442\u0443 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0442\u0435\u043c\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail(): \u041d\u043e \u0447\u0442\u043e \u0435\u0441\u043b\u0438 \u043c\u044b \u0445\u043e\u0442\u0438\u043c \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443, \u043d\u043e \u0438 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0434\u0430\u0442\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0438\u043b\u0438 \u0436\u0435 \u0432 \u00ab\u0411\u0438\u0431\u043b\u0438\u043e\u0442\u0435\u043a\u0435 \u0444\u0430\u0439\u043b\u043e\u0432\u00bb (Media Library) \u0432 \u0430\u0434\u043c\u0438\u043d\u043a\u0435 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (WordPress)? \u041e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f the_post_thumbnail() \u044d\u0442\u043e\u0433\u043e \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0435 \u0443\u043c\u0435\u0435\u0442, \u0430 \u0434\u0440\u0443\u0433\u043e\u0439 \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0434\u043b\u044f \u044d\u0442\u043e\u0433\u043e \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 (WordPress) \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442 (\u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u0434\u0430\u043d\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438). \u041a \u0441\u0447\u0430\u0441\u0442\u044c\u044e \u044d\u0442\u0430 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0440\u0435\u0448\u0430\u0435\u0442\u0441\u044f \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438 \u0432\u0441\u0435\u0433\u043e \u043b\u0438\u0448\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0441\u0442\u0440\u043e\u043a \u0432 \u0444\u0430\u0439\u043b\u0435 functions.php \u043f\u043e\u043c\u043e\u0433\u0443\u0442 \u044d\u0442\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u041c\u044b \u0441\u043e\u0437\u0434\u0430\u043b\u0438 \u043d\u043e\u0432\u0443\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u044e the_post_thumbnail_caption() \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u0438 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u0432\u043e\u0434\u0438\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0432 \u0432\u043e\u0440\u0434\u043f\u0440\u0435\u0441\u0441 \u0442\u0435\u043c\u0443. \u041a\u0430\u043a \u0444\u0443\u043d\u043a\u0446\u0438\u044e the_post_thumbnail, \u0442\u0430\u043a \u0438 the_post_thumbnail_caption \u0441\u043b\u0435\u0434\u0443\u0435\u0442 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0432 \u0446\u0438\u043a\u043b\u0435 WordPress (the loop). \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043a\u0430\u043a-\u0442\u043e \u0442\u0430\u043a: \u0418 \u043f\u043e\u043b\u0443\u0447\u0438\u043c, \u0432 \u043a\u043e\u043d\u0435\u0447\u043d\u043e\u043c \u0438\u0442\u043e\u0433\u0435, \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0438 \u043f\u043e\u0434 \u043d\u0435\u0439 \u0435\u0435 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a.","og_url":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/","og_site_name":"\u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a","article_published_time":"2013-03-11T22:20:08+00:00","article_modified_time":"2022-03-14T15:34:54+00:00","og_image":[{"width":1024,"height":670,"url":"https:\/\/romul.name\/wp-content\/uploads\/2013\/03\/the_post_thumbnail.png","type":"image\/png"}],"author":"Roman","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"https:\/\/romul.name\/#website","url":"https:\/\/romul.name\/","name":"\u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a","description":"\u0414\u0438\u0437\u0430\u0439\u043d \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 \u0441\u0430\u0439\u0442\u043e\u0432. \u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0434\u0438\u0437\u0430\u0439\u043d\u0430, \u0432\u0435\u0440\u0441\u0442\u043a\u0430, \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0430 WordPress \u0441\u0430\u0439\u0442\u043e\u0432.","publisher":{"@id":"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/romul.name\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"ru-RU"},{"@type":"WebPage","@id":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/","url":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/","name":"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail - \u0424\u0440\u0438\u043b\u0430\u043d\u0441 \u0432\u0435\u0431 \u0434\u0438\u0437\u0430\u0439\u043d\u0435\u0440 \u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a","isPartOf":{"@id":"https:\/\/romul.name\/#website"},"datePublished":"2013-03-11T22:20:08+00:00","dateModified":"2022-03-14T15:34:54+00:00","breadcrumb":{"@id":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/romul.name\/ru\/"},{"@type":"ListItem","position":2,"name":"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail"}]},{"@type":"Article","@id":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#article","isPartOf":{"@id":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/"},"author":{"name":"Roman","@id":"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab"},"headline":"\u041a\u0430\u043a \u0432 WordPress \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043e\u043a \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e \u0444\u0443\u043d\u043a\u0446\u0438\u0438 the_post_thumbnail","datePublished":"2013-03-11T22:20:08+00:00","dateModified":"2022-03-14T15:34:54+00:00","mainEntityOfPage":{"@id":"https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/"},"wordCount":41,"commentCount":0,"publisher":{"@id":"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab"},"articleSection":["Wordpress","\u0411\u043b\u043e\u0433"],"inLanguage":"ru-RU","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/romul.name\/ru\/blog\/wordpress-featured-image-display-image-caption\/#respond"]}]},{"@type":["Person","Organization"],"@id":"https:\/\/romul.name\/#\/schema\/person\/324b5711125914af1951b8c2b61496ab","name":"Roman","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"https:\/\/romul.name\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/130d81d5074019013634dc3d84a4445d?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/130d81d5074019013634dc3d84a4445d?s=96&d=identicon&r=g","caption":"Roman"},"logo":{"@id":"https:\/\/romul.name\/#\/schema\/person\/image\/"},"sameAs":["https:\/\/romul.name\/"]}]}},"_links":{"self":[{"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/posts\/4014"}],"collection":[{"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/comments?post=4014"}],"version-history":[{"count":2,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/posts\/4014\/revisions"}],"predecessor-version":[{"id":4020,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/posts\/4014\/revisions\/4020"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/media\/4016"}],"wp:attachment":[{"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/media?parent=4014"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/categories?post=4014"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/romul.name\/ru\/wp-json\/wp\/v2\/tags?post=4014"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}