Adds a [post_thumbnail] shortcode for use with wordpress post thumbnails.
添加[post_thumbnail]简码以用于wordpress帖子缩略图。
Size can also be set using [post_thumbnail size=”XXXX”].
也可以使用[post_thumbnail size =“ XXXX”]设置大小。
(You can call the function directly in your theme with
.)
(您可以直接在主题中使用 <?php post_thumbnail('size = thumbnail');?> code>调用该函数。) p>Just insert the shortcode into any post’s content and when it will be replaced with the featured image.
只需将简码插入任何帖子的内容中,何时将其替换为精选图片。 p>
This works only with the featured images introduced in WordPress 2.9.
这仅适用于WordPress 2.9中引入的特色图像。 p>
For more information head to the full information page for WordPress Post Thumbnail有关更多信息,请访问 WordPress发布缩略图的完整信息页面Shortcode
.
简码
。 p>