I can't comment on ...
 
Notifications
Clear all

[Solved] I can't comment on custom post type

7 Posts
3 Users
0 Reactions
1,286 Views
(@hasel)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

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


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

Hi @hasel,

Please send the admin login details to info[at]gvectors.com email address, I'll ask wpDiscuz developers to check the issue.


   
(@hasel)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

@elvina

thank you very much. I have sent the login details.

best regards

Hasel


   
Astghik
(@astgh)
Illustrious Member Admin
Joined: 7 years ago
Posts: 6146
 

@hasel

You've forgotten to add your website URL. You can either leave the URL here or send it via email address. 


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

@hasel,

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.

 

 


   
(@hasel)
New Member
Joined: 5 years ago
Posts: 3
Topic starter  

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


   
Elvina
(@elvina)
Support
Joined: 5 years ago
Posts: 1403
 

@hasel,

Thank you for letting us know.

Glad to hear that the problem is solved. 

 

 


   
Share:
Scroll to top