admin管理员组文章数量:1130349
On the same page, I have 3 comment threads. Each comment has a meta that tells in which tread they have to be displayed in. At the end of each thread, I have a form to post a comment in this specific thread and it adds the right meta.
The problem is when I click the “Reply” link, it adds a form under the comment, but not the good form. It adds the first form that appears in the page, event if I reply a comment from the third thread. So the meta that is added with my new comment is not the good one…
To generate my 3 comment threads , I use the comment_form() function. This function generated a div with a lot of hmtl inside. This div has an id="respond". I need to change this id for each comment thread to be different. Right now, all 3 comment threads have the same "respond" id.
Than, thanks to the comment reply link() function, i'll be able to control which respond_id is taken by comment-reply.js...
So all I need is to change this "respond" id for each comment thread that is generated by the comment_form() function ! But how :( ???
Thanks !
On the same page, I have 3 comment threads. Each comment has a meta that tells in which tread they have to be displayed in. At the end of each thread, I have a form to post a comment in this specific thread and it adds the right meta.
The problem is when I click the “Reply” link, it adds a form under the comment, but not the good form. It adds the first form that appears in the page, event if I reply a comment from the third thread. So the meta that is added with my new comment is not the good one…
To generate my 3 comment threads , I use the comment_form() function. This function generated a div with a lot of hmtl inside. This div has an id="respond". I need to change this id for each comment thread to be different. Right now, all 3 comment threads have the same "respond" id.
Than, thanks to the comment reply link() function, i'll be able to control which respond_id is taken by comment-reply.js...
So all I need is to change this "respond" id for each comment thread that is generated by the comment_form() function ! But how :( ???
Thanks !
本文标签: Change idquotrespondquot to the comments container
版权声明:本文标题:Change id="respond" to the comments container 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749075854a2312292.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论