• Resolved ingridprent

    (@ingridprent)


    Hi,

    It seems that I cannot disable comments when using Learndash plugin (for lessons) and WP-testing plugin (for tests). The section where I can hide or display comments doesn’t show for lessons and/or tests.
    Is there perhaps another option, like changing code or something?
    I would really appreciate your help ??

    Kind regards,
    Ingrid

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • @ingridprent, it’s not possible currently (in this plugin’s admin UI). But you can use ugly workaround through MySQL (in your cpanel).

    Run this query and it will hide this comments from tests:

    DELETE FROM wp_postmeta WHERE meta_key = '_disabel_wpdevart_facebook_comment'
    AND post_id IN (SELECT ID FROM wp_posts WHERE post_type = 'wpt_test');
       
    INSERT INTO wp_postmeta (post_id, meta_key, meta_value)
    SELECT 
        ID, '_disabel_wpdevart_facebook_comment', 'disable'
    FROM
        wp_posts
    WHERE
        post_type = 'wpt_test';

    Another way is just hide it through CSS:

    
    #wpdevar_comment_1, #wpdevar_comment_2 { display: none !important; }
    
    Thread Starter ingridprent

    (@ingridprent)

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Disable comments for lessons and tests’ is closed to new replies.