The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
wpdiscuz didn't wor...
 
Share:
Notifications
Clear all

Issue [Solved] wpdiscuz didn't work well with custom post type

9 Posts
2 Users
0 Reactions
958 Views
Posts: 4
Topic starter
(@adilraya22)
Active Member
Joined: 1 year ago

Well, I recently moved to wpdiscuz from disqus comment system in my site and I am using custom post type that has many child post.

maybe like this

> Main Post 1 /game-rpg/

- Child post 1.1 /game-rpg/patch-1

- Child post 1.2 /game-rpg/patch-2

> Main Post 2 /game-rts/

- Child post 2.1 /game-rts/patch-1

...

It's not tags or categories based, it's a custom type post.

I want the child post has separate comment from the other post type but somehow it will display all custom post type based on its main post.

Am I missing some feature?

 

Thank you, wpdiscuz is great

Raya

8 Replies
Asti
Posts: 7229
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

Hi Raya,

Could you please provide the example URL so we can check the issue? 

Posts: 4
Topic starter
(@adilraya22)
Active Member
Joined: 1 year ago

Sure,

Here is the example from https://novaneto.com/game/stardew-valley/

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

Illustrious Member
Posts: 7229

@adilraya22,

Please put the following code in your active theme functions.php file:

global $wp_manga_comments;
if($wp_manga_comments){
    add_action('wpdiscuz_button', array( $wp_manga_comments, 'chapter_comment_field' ) );
}

This article should be helpful for you: https://www.rosehosting.com/blog/how-to-add-code-to-functions-php-in-wordpress/

Posts: 4
Topic starter
(@adilraya22)
Active Member
Joined: 1 year ago
Screenshot 2022 12 24 233624

I added it to my child theme and tried to add it to tha parent theme, but seems it doesn't work

 

Thank you for your reply 🙂

2 Replies
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7229

@adilraya22,

Could you please send the admin login details to info[at]gvectors.com email address? Also, send the example URLs as well. 

Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7229

@adilraya22,

Thi issue is fixed. Please watch this video: https://www.screencast.com/t/fT4TkBM2fS

First of all, you should keep the previously provided code in the functions.php file. It's necessary. 

Then you should keep the "Break comments into pages with..." option enabled. It works fine with the default WordPress pagination type. The option is located in the Dashboard > Settings > Discussion admin page. 

Finally, the "LiteSpeed Cache" plugin causes some issues. It should be either disabled or you should contact the plugin support and ask them to check and check the issue. 

Posts: 4
Topic starter
(@adilraya22)
Active Member
Joined: 1 year ago

Oh, thank you, nice support

 

It works well now, maybe you could include the code into the plugin for next update.

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

Illustrious Member
Posts: 7229

We'll take this into consideration for future updates. But I'm not sure if it can be added in the plugin codes. Please keep it in the functions.php file. 

Share: