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
Notifications
Clear all

Need to put Comment Form above Page Comments OR use a Slide In or ANYTHING

2 Posts
2 Users
0 Reactions
2,398 Views
(@mh4gvector)
New Member
Joined: 5 years ago
Posts: 2
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
  [#6902]

I need to put the Comment Forum at the Top of the Page Comments...  I found a thread answer providing that ability but the code is not working

https://wordpress.org/support/topic/shortcode-for-wpdiscuz/

 

Putting this shortcode above the page comments so users can easily leave a comment

[wpdiscuz_comments]

 

Putting this in function.php

function my_wpdiscuz_shortcode() {
  if (file_exists(ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php')) {
      ob_start();
      include_once ABSPATH . 'wp-content/plugins/wpdiscuz/templates/comment/comment-form.php';
      return ob_get_clean();
  }
}
add_shortcode('wpdiscuz_comments', 'my_wpdiscuz_shortcode');


   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
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
 

This is the old shortcode you should use the code provided by Taron here: https://wpdiscuz.com/community/postid/598/

The is another easiest way you can choose. You'll just need to move the comments_template() function at the top of the page in the theme template files. 



   
ReplyQuote
Share:
Scroll to top