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

WPDiscuz and Elementor

9 Posts
2 Users
0 Reactions
4,726 Views
Posts: 11
 nysc
Topic starter
(@nysc)
Active Member
Joined: 4 years ago

Hello,

Please is there a way to use wpdiscuz and elementor?

Topic Tags
8 Replies
Asti
Posts: 7617
 Asti
Support
(@asti)
Illustrious Member
Joined: 7 years ago

@nysc,

Try to use the wpDiscuz shortcode. More info here: https://wpdiscuz.com/community/postid/598/

Reply
Posts: 11
 nysc
Topic starter
(@nysc)
Active Member
Joined: 4 years ago

Hi @Asti,

Thanks for the feedback but I don't even know where to begin based on the info on that page. Where do i place the shortcode?

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

Illustrious Member
Posts: 7617

@nysc,

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");

Then insert the shortcode wherever you like:

[wpdiscuz_comments]

I may also suggest you check the points mentioned in this doc if the comment form is still not to be visible: https://wpdiscuz.com/docs/wpdiscuz-7/getting-started/missing-comment-form/

 

Reply
 nysc
(@nysc)
Joined: 4 years ago

Active Member
Posts: 11

@asti,

I have done as you have said. however, please see the attached file for what I saw.

wpdisquz image

 What do I do to get it to display correctly?

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

Illustrious Member
Posts: 7617

@nysc,

Please the "Default form" make sure the "Display comment form for post types" is checked for the current post type. 

In any case, please press the "Update" button in the form edit section. Then delete all caches and check again. 

Reply
 nysc
(@nysc)
Joined: 4 years ago

Active Member
Posts: 11

@asti Thank you. Yes, I had done this earlier and it worked. I'm sorry I did not return here to update you. It works beautifully and I even deleted the code you earlier provided for the functions.php file and it still works. Or do you think I should keep the code in the functions.php file?

Your plugin is first-class. Congratulations on your creation.

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

Illustrious Member
Posts: 7617

Thank you, @nysc,

If it's work without the code you can simply remove it. 

Reply
Posts: 11
 nysc
Topic starter
(@nysc)
Active Member
Joined: 4 years ago

Thank you Asti. I will do as you say.

However, please can I ask you if I can also use the approach described on this page: https://isotropic.co/add-wpdisquz-to-elementor-a-better-comments-system/. This approach does not appear to require any code.

Thanks in advance for your reply.

Reply
Share: