Thread Starter
weric
(@weric)
thanks for the links. I discovered insteresting plugins. Unfortunately this not exactly what I need to achieve.
Thread Starter
weric
(@weric)
I already have the first part of the php script :
if (current_user_can( ‘role1’) && has_category( ‘abc))
) {
if ( ( comments_open() || get_comments_number() ) && ‘on’ == et_get_option( ‘divi_show_postcomments’, ‘on’ ) ) {
comments_template( ”, true );
}
}
The second and missing part is
ELSE I would like to show the existing comments for the current post but not the comment form to add a new comment.
Any help appreciated, thanks in advance
Hello,
You can try using get_comments()
Further, you can also refer the link which can help you with code.
https://wordpress.stackexchange.com/questions/81690/display-comments-on-a-comment-page-without-form
Let me know if this solves your issue.
Thanks.
Thread Starter
weric
(@weric)
Works fine.
Many thanks for your help