The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Wpdiscuz on listing...
 
Share:
Notifications
Clear all

Wpdiscuz on listings hp_listing don't show comments

10 Posts
2 Users
0 Reactions
2,823 Views
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 4 years 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
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 4 years 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: 7 years ago

Illustrious Member
Posts: 7617

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

Illustrious Member
Posts: 7617

@ahmet-dereden,

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

Reply
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 4 years 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
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 4 years 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
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 4 years ago
Screenshot 20201204 113622
Reply
Posts: 7
Topic starter
(@ahmet-dereden)
Active Member
Joined: 4 years 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: