Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php ';注释弹出链接()';在Genesis框架上使用不同的#ID_Php_Wordpress_Comments_Reply_Genesis - Fatal编程技术网

Php ';注释弹出链接()';在Genesis框架上使用不同的#ID

Php ';注释弹出链接()';在Genesis框架上使用不同的#ID,php,wordpress,comments,reply,genesis,Php,Wordpress,Comments,Reply,Genesis,我想在我的Wordpress主题的每篇文章下添加一个“评论”和“回复”链接。标准“comment\u popup\u link()”函数创建此类链接: http://website.com/page/#comments 我想要的是在上面的旁边创建另一个,如下所示: http://website.com/page/#reply <a href="<?php the_permalink(); ?>#reply"> <?php comments_number(

我想在我的Wordpress主题的每篇文章下添加一个“评论”和“回复”链接。标准“comment\u popup\u link()”函数创建此类链接:

http://website.com/page/#comments
我想要的是在上面的旁边创建另一个,如下所示:

http://website.com/page/#reply
<a href="<?php the_permalink(); ?>#reply">
    <?php comments_number('No Comments', '1 Comment', '% Comments'); ?>
</a>
我该怎么做

我试图用Genesis框架将其添加到Wordpress主题中。有一个可用的快捷码-[post_comments]与“comment_popup_link()”的功能相同。上述短代码/函数的输出如第一个代码示例所示

谢谢,
Luca

肮脏而快速的解决方案是这样的:

http://website.com/page/#reply
<a href="<?php the_permalink(); ?>#reply">
    <?php comments_number('No Comments', '1 Comment', '% Comments'); ?>
</a>


您能给我们提供更多的细节吗?我不确定我能提供更多的细节。我试图用Genesis框架将其添加到Wordpress主题中。有一个可用的快捷码-[post_comments]与“comment_popup_link()”的功能相同。上述短代码/函数的输出如第一个代码示例所示。我也在努力实现第二个例子。我不认为我能帮你,因为我不太了解Genesis框架。然而,我已经编辑了你的问题并正确地标记了它,以吸引处理Genesis模板的人。谢谢!我不确定这只是Genesis框架的问题,还是纯粹基于Wordpress。“comment\u popup\u link()”函数是WP中的标准函数。现在我还发现我在标题和第一句中犯了一个错误,提供了可能错误的函数。你是一颗宝石!这是我所需要的修改版本:
很遗憾,我还不能投票,但你的答案正是我所需要的。非常感谢。你可以点击旁边的按钮接受我的答案。谢谢:=)