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

Comment Section

12 Posts
2 Users
0 Reactions
1,548 Views
Posts: 6
Topic starter
(@nick7961)
Active Member
Joined: 5 years ago

how to use comment section in post by shortcode?

789

Ā 


11 Replies
Asti
Posts: 8107
 Asti
Support
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @nick7961,

Have you put the code provided by Taron in this post in the active theme functions.php file?Ā 

Ā 


Reply
10 Replies
(@nick7961)
Joined: 5 years ago

Active Member
Posts: 6

Hi @asti

No, i haven't... what's the code? and how to add that?Ā 


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

Illustrious Member
Posts: 8107

@nick7961,

Put this code in the active theme functions.php file:

function my_wpdiscuz_shortcode() {
$html = "";
if (file_exists(ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php")) {
ob_start();
include_once ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
$html = ob_get_clean();
}
return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

More information on how to add insert custom code: https://www.wpbeginner.com/plugins/how-to-easily-add-custom-code-in-wordpress-without-breaking-your-site/


Reply
(@nick7961)
Joined: 5 years ago

Active Member
Posts: 6

@asti I add this code in code snippet plugin. I'm using a custom page made by elementor but the comment section shows only in the elementor edit section. When I preview this post then nothing is there.

4444

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

Illustrious Member
Posts: 8107

@nick7961,

Please leave some example URL to allow us to check the issue.Ā 


Reply
(@nick7961)
Joined: 5 years ago

Active Member
Posts: 6
Asti
 Asti
Support
(@asti)
Joined: 8 years ago

Illustrious Member
Posts: 8107

@nick7961,

We don't see a comment section in the link you've provided.Ā 


Reply
(@nick7961)
Joined: 5 years ago

Active Member
Posts: 6

@asti that's what I said... there is no comment section there... but when I'm editing the post with elementor it appears in the editing section. And when I preview it then nothing is there...


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

Illustrious Member
Posts: 8107

@nick7961,

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
(@nick7961)
Joined: 5 years ago

Active Member
Posts: 6

@asti can you do that live? so that in future, i can resolve my issue by myself.


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

Illustrious Member
Posts: 8107

@nick7961,

At first, we'll need to understand the reason for the issue. Then we'll be able to provide some solution for you.Ā 


Reply
Share: