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
wpDiscuz doesn't lo...
 
Share:
Notifications
Clear all

[Solved] wpDiscuz doesn't load on Glossaries

3 Posts
2 Users
0 Reactions
1,331 Views
Posts: 26
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
(@gooloode)
Trusted Member
Joined: 3 years ago
[#7265]

Hello,

i am using wpDiscuz and have added support for the post type Glossary which is shown in the Form:  https://scrnli.com/files/RS9ek0AyUUgQ6n

I did this by using these PHP Codes:

/**     
 * Display the comment template with the [ wpse_comments_template ] shortcode. Note: Remove the spaces between the shortcode and [] brackets.
 * shortcode on singular pages. 
 *
 * @see   https://stackoverflow.com/a/28644134/2078474  
 */
 add_shortcode( 'wpse_comments_template', function( $atts = array(), $content = '' )
 {
    if( is_singular() && post_type_supports( get_post_type(), 'comments' ) )
    {
        ob_start();
        comments_template();
        add_filter( 'comments_open',       'wpse_comments_open'   );
        add_filter( 'get_comments_number', 'wpse_comments_number' );
        return ob_get_clean();
    }
    return '';
}, 10, 2 );

function wpse_comments_open( $open )
{
    remove_filter( current_filter(), __FUNCTION__ );
    return false;
}

function wpse_comments_number( $open )
{
    remove_filter( current_filter(), __FUNCTION__ );
    return 0;
}
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');
function comment_support_for_my_custom_post_type() {
   add_post_type_support( 'glossary', 'comments' );
}

add_action( 'init', 'comment_support_for_my_custom_post_type' );

 

But the form still doesn't show:  https://www.gooloo.de/inci/acetic-acid

Plugin in Question:  https://de.wordpress.org/plugins/glossary-by-codeat/

wpDiscuz Version: 7.5.3

 

I have send Admin Credentials to info@gvectors.com


Topic Tags
2 Replies
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

Thank you @gooloode,

The developers are currently checking your website. Please wait a bit. I'll update this topic once they finish checking. 

 


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

Illustrious Member
Posts: 8210
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

@gooloode,

Please delete the wpDiscuz plugin via FTP and let us know. 


Share: