wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Commenting is not displayed in Services


payxander
Posts: 4
Topic starter
(@payxander)
New Member
Joined: 3 months ago
Hello guys!
I have a question for you
 
I have a website on Wordpress. I also installed a Wordpress theme - Avas, which in addition to posts and pages has such a function as "Services" and all my articles,posts are placed in these Services.

How can I make it possible to comment on these Services?
For example

I tried to put in the settings of your plugin, a list of page ID numbers to display comments, but it still does not work.
 
Thank you
Topic Tags
7 Replies
Asti
Posts: 4116
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

@payxander,

Please check each point mentioned in this doc and leave some feedback for each one: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/

Reply
2 Replies
payxander
(@payxander)
Joined: 3 months ago

New Member
Posts: 4

@asti 

Thank you but None of the advice helps. 

On my Wordpress theme - Avas, all articles (posts) on Services section and Discuz is not displayed. Support can't help, so there's only hope for you!

02.113

 

Reply
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 4116

@payxander,

If there is no any settings to enable comments, you can use WordPress add_post_type_support() function. You can simply add the following to your active theme functions.php file:

function comment_support_for_my_custom_post_type() {
     add_post_type_support( 'my_post_type', 'comments' );
}
add_action( 'init', 'comment_support_for_my_custom_post_type' );

 Just use your custom post type instead of the red marked value. 

 

Reply
payxander
Posts: 4
Topic starter
(@payxander)
New Member
Joined: 3 months ago

What should I write instead?

'my_post_type'

 

All my articles are in the ".com.ua/service/" section.
Here's an example

 

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 4116

@payxander,

Try the following one:

function comment_support_for_my_custom_post_type() {
     add_post_type_support( 'service', 'comments' );
}
add_action( 'init', 'comment_support_for_my_custom_post_type' );
Reply
payxander
Posts: 4
Topic starter
(@payxander)
New Member
Joined: 3 months ago

Could it be an error in making some settings or making changes in Elementor, which is present on this site?

Reply
1 Reply
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 4116

I'm not sure about this. It can be a plugin conflict as well. 

Reply
Share: