我希望观众可以在每个帖子的末尾进行投票。我不想为每个帖子手动创建一个民意调查。 我能找到的唯一插件是星级。我们正在寻找一个自定义民意调查,询问“你会考虑这篇文章:Pro This,Anti This or Right in the Middle”。否则,我必须为每个帖子创建一个唯一的轮询并手动插入。我们计划每天发布几十个新帖子。 我一直在各地搜索,找不到这样的东西。我希望有人有推荐。
就像我在评论中写的那样,你可以通过多种方式轻松实现自己想要的目标。例如 :
single.php
或post.php
or任何其他替代方案)functions.php
中使用自定义函数创建子主题(见下文)the_content
过滤器(见下文)function whateverContentYouWant($content) {
if(!is_feed() && !is_home()) { // your conditions if any
$content.= "Enjoyed this article?"; // add your content here
}
return $content;
}
add_filter ('the_content', 'whateverContentYouWant');
话虽这么说,我不确定这个网站是搜索插件推荐的最佳位置。如果您有更具体的代码相关问题(更好)