我正在尝试向我的WordPress模板添加一个按钮。基本上,我有帖子,然后有相关的帖子缩略图窗口小部件出现。我想要的按钮之间的帖子文本和相关的帖子缩略图小工具。我的“Single Post”中包含所有这些的代码如下所示:
<div class="post-content">
<?php the_content(__('<em><strong>More:</strong> Read the rest of this entry...</em>', 'life-is-simple'))
我在http://richardclunan.com/blog/的博客上没有看到缩略图,我在博客上找到了一些代码,我认为我可能需要添加到functions.php中才能实现这一点,如果我确实需要这样做,我想知道在functions.php中我应该在哪里添加代码.
在我的21个文件中,在functions.php中,它写着:
//此主题使用特征图像(也称为帖子缩略图)用于每个帖子/页自定义标题图像add_theme_support(‘后缩略图’);
但以下代码不在functions.php中:
if ( function_exists( 'add_theme_support‘)){ ad