wpDiscuz - WordPress Comment Plugin
Share:
Notifications
Clear all

[Solved] Adding commenting to dynamic pages


Vasudev
Posts: 11
Topic starter
(@vasudev)
Active Member
Joined: 2 weeks ago

Hi,

I want to add commenting to dynamic pages created by a plugin Sonaar. I create a playlist and then I get this as output automatically generated. I need to place comments in this.

Capture

 

Page:  https://indikaari.in/album/grandparents/?v=c86ee0d9d7ed

Backend photo: 

19 Replies
Asti
Posts: 3134
 Asti
Support
(@asti)
Support member
Joined: 4 years ago

wpDiscuz uses the post object, that may be the same in your plugin, so it may display the same comments under each item of the album. You may have only one comment section for each album. 

Reply
Vasudev
Posts: 11
Topic starter
(@vasudev)
Active Member
Joined: 2 weeks ago

The point is that I am unable to add any comments section in this post. 

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

Support member
Posts: 3134

@vasudev,

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
Vasudev
Posts: 11
Topic starter
(@vasudev)
Active Member
Joined: 2 weeks ago

Thank you for the information. I think you missed the point that your forms are visible everywhere except the player. For example on https://www.indikaari.in/album/grandparents/

Reply
Vasudev
Posts: 11
Topic starter
(@vasudev)
Active Member
Joined: 2 weeks ago

So I got how exactly you can help me - by helping me get the shortcode. As I said, it is visible in all post pages except those created by a plugin. I need to add shortcode there. It'll be great if you would share that in a lay man's language.

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

Support member
Posts: 3134

The shortcode is provided in this post by Taron.

Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11

@asti

image

  This is what I got. 🙁

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

Support member
Posts: 3134

@vasudev,

now navigate to Dashboard > wpDiscuz > Forms admin page, edit the form and enable it for the post type. More info here:  https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/manage-comment-forms/comment-form-settings/#post-types

Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11

@asti Thank you for being so prompt and patient. But I still cannot get the shortcode right after enabling forms on post. One error which I might be making is that the shortcode does not have any information about which form to use from the shortcode. Probably that is why the shortcode is being detected but no form is coming. I am saying this out of common sense and may be wrong.

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

Support member
Posts: 3134

@vasudev,

Please leave some screenshots or video of all the customizations you've made. 

Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11
Asti
 Asti
Support
(@asti)
Joined: 4 years ago

Support member
Posts: 3134

@vasudev,

Could you please send the admin login details to info[at]gvectors.com email address? I'll ask the developers to check the issue for you.  

Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11

@asti I have emailed you the credentials.

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

Support member
Posts: 3134

@vasudev,

we see the following message: 

image

 

Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11

@asti Apologies. I've corrected it.

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

Support member
Posts: 3134

@vasudev,

We've fixed the issue. Not necessary to use the shortcode anymore. You can remove the code you've added from the functions.php file.  

Keep the code that is added by us. Please watch this video. Here we show the changes we've made to get it resolved: https://www.screencast.com/t/y8jEtxjg0

Here is the code we've added:

function comment_support_for_my_custom_post_type() {
    add_post_type_support( 'album' , 'comments' );
}
Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11

@asti  Thank you...this is wonderfully done. Earlier, I needed the shortcode also because I do not want the form at the bottom of the page. I need it above  the subscription form on the page - https://www.indikaari.in/album/grandparents/?v=c86ee0d9d7ed . Can that be done??

 

But the album part is brilliant. Thank you.

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

Support member
Posts: 3134

ok @vasudev,

You should find the template file that displays the album and change the comments_template() functions position. 

Reply
Vasudev
(@vasudev)
Joined: 2 weeks ago

Active Member
Posts: 11

@asti Thank you

Reply
Share: