在特色图片元框中添加或更改内容-Wordpress

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在特色图片元框中添加或更改内容-Wordpress相关的知识,希望对你有一定的参考价值。

Add or Change Content in the Featured Image Meta Box
Posted on March 21, 2011

Perhaps you need to provide a little extra instruction about the Featured Image meta box. It doesn’t take much to add your own text to that box:
  1. add_filter( 'admin_post_thumbnail_html', 'add_featured_image_instruction');
  2. function add_featured_image_instruction( $content ) {
  3. return $content .= '<p>The Featured Image is an image that is chosen as the representative image for Posts or Pages. Click the link above to add or change the image for this post. </p>';
  4. }

以上是关于在特色图片元框中添加或更改内容-Wordpress的主要内容,如果未能解决你的问题,请参考以下文章

Wordpress - 特色图像元框未显示在自定义帖子类型上

Wordpress 自定义元框多张图片上传

如何在wordpress插件的自定义元框中保存多个复选框值?

wordpress 元框中的多个复选框

将 WordPress 特色图片添加到 RSS 提要

将特色图片添加到自定义帖子类型