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

[Solved] Adding commenting to dynamic pages

20 Posts
2 Users
1 Reactions
1,313 Views
Posts: 19
Topic starter
(@vasudev)
Active Member
Joined: 3 years 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: 7645
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 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. 

Posts: 19
Topic starter
(@vasudev)
Active Member
Joined: 3 years ago

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

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

Illustrious Member
Posts: 7645

@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/

Posts: 19
Topic starter
(@vasudev)
Active Member
Joined: 3 years 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/

Posts: 19
Topic starter
(@vasudev)
Active Member
Joined: 3 years 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.

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

Illustrious Member
Posts: 7645

The shortcode is provided in this post by Taron.

(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19

@asti

image

  This is what I got. 🙁

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

Illustrious Member
Posts: 7645

@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

(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19

@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.

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

Illustrious Member
Posts: 7645

@vasudev,

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

(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19
Asti
 Asti
Support
(@asti)
Joined: 7 years ago

Illustrious Member
Posts: 7645

@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.  

(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19

@asti I have emailed you the credentials.

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

Illustrious Member
Posts: 7645

@vasudev,

we see the following message: 

image

 

(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19

@asti Apologies. I've corrected it.

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

Illustrious Member
Posts: 7645

@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' );
}
(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19

@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.

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

Illustrious Member
Posts: 7645

ok @vasudev,

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

(@vasudev)
Joined: 3 years ago

Active Member
Posts: 19

@asti Thank you

Share: