I can't comment on ...
 

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

  RSS

Hasel
(@hasel)
New Member
Joined: 2 months ago
Posts: 3
02/10/2019 9:55 pm  

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)
Estimable Member Moderator
Joined: 3 months ago
Posts: 181
03/10/2019 12:29 pm  

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
(@hasel)
New Member
Joined: 2 months ago
Posts: 3
03/10/2019 1:09 pm  

@elvina

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

best regards

Hasel


Astghik
(@astghik)
Support Team Admin
Joined: 2 years ago
Posts: 3457
03/10/2019 5:34 pm  

@hasel

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


Elvina
(@elvina)
Estimable Member Moderator
Joined: 3 months ago
Posts: 181
04/10/2019 4:14 pm  

@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
(@hasel)
New Member
Joined: 2 months ago
Posts: 3
18/10/2019 8:14 pm  

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)
Estimable Member Moderator
Joined: 3 months ago
Posts: 181
19/10/2019 12:44 pm  

@hasel,

Thank you for letting us know.

Glad to hear that the problem is solved. 

 

 


Share:
Green
Default
Pear
Black Emo
{green}:grinning:
{green}:wink:
{green}:face:
{green}:inlove:
{green}:sweaty:
{green}:surprised:
{green}:lovekiss:
{green}:laugh:
{green}:formalsmile:
{green}:displeased:
{green}:cool:
{green}:resent:
{green}:nerd:
{green}:screaming:
{green}:amazed:
{green}:sad:
{green}:deceitful:
{green}:starryeyes:
{green}:evil:
{green}:shocked:
{green}:tears:
{green}:sulky:
{green}:smile:
{green}:vomited:
{green}:hi:
{green}:afraid:
{green}:crazy:
{green}:rabid:
{green}:fighting:
{green}:nonoise:
{green}:blushed:
{green}:idontknow:
{green}:scared:
{green}:razz:
{green}:kiss:
{green}:eat:
{green}:shutmouth:
{green}:gape:
{green}:suspicious:
{green}:laughingoutloud:
{green}:bruise:
{green}:crying:
{green}:pray:
{green}:serious:
{green}:excitement:
:)
:d
:wink:
:mrgreen:
:neutral:
:twisted:
:arrow:
:shock:
:???:
:cool:
:evil:
:oops:
:razz:
:roll:
:cry:
:eek:
:lol:
:mad:
:sad:
:!:
:?:
:idea:
:hmm:
:beg:
:whew:
:chuckle:
:silly:
:envy:
:shutmouth:
{pear}:happy:
{pear}:smile:
{pear}:laugh:
{pear}:laughingoutloud:
{pear}:crying:
{pear}:exhausted:
{pear}:nerd:
{pear}:surprised:
{pear}:veryhungry:
{pear}:wink:
{blackemo}:laughtertotears:
{blackemo}:gift:
{blackemo}:love:
{blackemo}:inlove:
{blackemo}:shamefaced:
{blackemo}:heart:
{blackemo}:crazy:
{blackemo}:anguished:
{blackemo}:bruise:
{blackemo}:easymoney:
{blackemo}:exhausted:
{blackemo}:vampire:
{blackemo}:shutmouth:
{blackemo}:wink:
{blackemo}:carnival:
{blackemo}:flowers:
{blackemo}:hotdrink:
{blackemo}:party: