wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

Wpdiscuz on listings hp_listing don't show comments  

Page 1 / 2

ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago

Hello,

I have install listings plugin. So wp discuz work normal on post show but on listings don't show. On listing i get original wp comments form and on my normal posts i get wpdiscuz form. 

So is there any way to add filter snippet to show wp discuz on listing plugin too?

9 Replies
ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago

I chose on setting hp_listing there is faild to check. This is cheked too but on listing don't show wp discuz.

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

Support member
Posts: 1940

@ahmet-dereden,

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
ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago

Many thanks for reply. 

I check it but Problem not solved. So I get Standard comment function but on hp_listing don't Show discuz there is just Standard comment function 

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

Support member
Posts: 1940

@ahmet-dereden,

Please leave a screenshot of the "Display comment form for post types" section (Fixing Tip 2). 

Reply
ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago

So you can See there hp_listing is checked. But I get on my normal post discuz and on hp_listing Standard comment faild. 

Screenshot 20201204 112751 com.android.chrome
Screenshot 20201204 112738 com.android.chrome
Reply
ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago

to get on the form check point hp_listing i add this sdcction

 

add_filter( 'hivepress/v1/post_types', function( $post_types ) { $post_types['listing']['supports'][] = 'comments'; return $post_types; } ); add_filter( 'hivepress/v1/templates/listing_view_page', function( $template ) { return hivepress()->helper->merge_trees( $template, [ 'blocks' => [ 'page_content' => [ 'blocks' => [ 'listing_comments' => [ 'type' => 'callback', 'callback' => 'comments_template', '_order' => 100, ], ], ], ], ] ); } );

Reply
ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago
Screenshot 20201204 113622
Reply
ahmet.dereden
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 2 months ago

As you can see the code snippet suggested above calls the “comments_template” function  https://prnt.sc/vvro4x  Maybe this Discuz plugin is enabled for regular posts by default, but not for custom post types like Listing?

Reply
Page 1 / 2
Share: