Hi,
i have a fresh wordpress installation with wpdiscuz and directories pro plugin from codecanyon. The plugin create a custom post type. The plugin Author has sent me this snippet to display the comment section
add_filter('comments_open', function($open, $postId){
if (isset($GLOBALS['drts_entity'])
&& $GLOBALS['drts_entity']->getId() === $postId
) {
$open = true;
}
return $open;
}, 11, 2);
I can see the comment field but i can’t comment. I become the message:
We are sorry, you are not allowed to comment more than one time!
If i have disabled wpdiscuz i can comment with wordpress comment funcion. I have try it logged in and as guest it’s the same problem.
can you help me to solve this problem
best regards
hasel
Hi @hasel,
Please send the admin login details to info[at]gvectors.com email address, I'll ask wpDiscuz developers to check the issue.
You've forgotten to add your website URL. You can either leave the URL here or send it via email address.
As far as we see, the Directories Pro Plugin authors provide a code for displaying comment section.
The code works with default comment as it doesn't use ajax.
wpDiscuz uses ajax.
You should contact the Directories Pro Plugin developer, and ask them to provide some solution that will work with ajax.
Hi Elvina,
the Author from directories pro fix the problem with version 1.2.70 and now it works.
You can close this topic.
thanks for your help
best regards
Hasel