Php 回复链接wordpress不';行不通

Php 回复链接wordpress不';行不通,php,html,css,wordpress,hyperlink,Php,Html,Css,Wordpress,Hyperlink,我试图在我的comments.php表单上添加一个回复链接,但它不起作用。它只会刷新我的页面 我使用的代码如下所示: <div class= replay_text"> <font size="-1"><strong><a href="<?php comment_reply_link( array ( 'reply_text' => 'Replay alt="Reply">' ) ); ?>">Reply</a>

我试图在我的comments.php表单上添加一个回复链接,但它不起作用。它只会刷新我的页面

我使用的代码如下所示:

<div class= replay_text">
<font size="-1"><strong><a href="<?php comment_reply_link( array ( 'reply_text' => 'Replay alt="Reply">' ) ); ?>">Reply</a></strong></font></div>

我对php不太了解,但我认为问题在于你忘了打开
,而你在php上说的是
回复文本
,而不是
回放文本
。以下是正确的答案:

<div class= "reply_text">
<font size="-1"><strong><a href="<?php comment_reply_link( array ( 'reply_text' => 'Replay alt="Reply">' ) ); ?>">Reply</a></strong></font></div>


检查如何使用评论回复链接。使用它作为锚源不是最好的主意,我也见过更糟的,但你不会得到任何与tah

相反,在锚定目标中,在其他html元素之间使用它:

<?php comment_reply_link(array_merge( $args, array('add_below' => $add_below, 'depth' => $depth, 'max_depth' => $args['max_depth']))) ?>


更正语言错误与worpdress内部功能和修复问题无关:(抱歉,我认为可能只是语言错误……我不想让他在知道这只是语言的情况下继续搜索错误。他只是以某种方式使用了一个函数,不应该使用它。同时以数组的方式发送参数,我只是不明白,他在做什么。尝试查看文档: