The effects of alcohol on sustanon 250 leucine for – real weight loss & bodybuilding benefits?
Search
Close
AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
What's the “shortco...
 
Share:
Notifications
Clear all

Question [Solved] What's the “shortcode” for wpDiscuz to be used with Elementor free version ?

2 Posts
2 Users
0 Reactions
1,814 Views
Posts: 6
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@vikramvi)
Active Member
Joined: 3 years ago
[#7338]

Hi,

I'm using Elementor "free" version and "shortcode" widget to show comments on blog post.

Please let me know what value should I use for "shortcode" ?

Thanks in advance.

 

I'm following below instructions for elementor page builder

 

  1. Once the plugin is installed and activated, go to your Elementor editor and navigate to the page where you want to add the comments section.
  2. Drag and drop the “Shortcode” element from the Elementor widget panel onto the page.
  3. In the shortcode element, enter the shortcode provided by the comments plugin.

1 Reply
Asti
Posts: 8210
 Asti
Support
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@asti)
Illustrious Member
Joined: 8 years ago

Hi @vikramvi,

Please follow the steps below: 

1.Put the following 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 ABSPATH . "wp-content/plugins/wpdiscuz/themes/default/comment-form.php";
        $html = ob_get_clean();
    }
    return $html;
}
add_shortcode("wpdiscuz_comments", "my_wpdiscuz_shortcode");

2. Drag and drop the "Shortcode" element from the Elementor widget panel onto the page. Insert this shortcode: 

[wpdiscuz_comments]

3. Enable the comment form for the current post type

That is: the shortcode can be used if the post type supports comments.  


Share: