[Support request] How To Enable Comments on Dispatch Theme

Home Forums Support [Support request] How To Enable Comments on Dispatch Theme

Home Forums Support How To Enable Comments on Dispatch Theme

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1678095
    Heather

    Hi, I thought I was going crazy because I couldn’t understand why the dispatch theme wasn’t displaying the comments section in my posts. So I checked the dispatch demo, and the demo sure enough, has them all disabled as well.

    I’ve checked my settings in SETTINGS > DISCUSSION and my comments are enabled because all 3 top options are checked. When I look at an individual post however, ‘allow comments’ is unchecked. We have almost 50,0000 posts on this website so going thru one by one is not gonna be an option.

    How do I allow the comments section to display sitewide?

    Also, Do you have a recommendation for comment spam?
    Do you have a recommendation for pushing posts to social media?

    I like to ask just in case you know of any high quality plugin options that will be speed friendly.

    Thank you for your help.

    #1678103
    Heather

    And I just answered my own question. I ran this piece of code and it fixed my problem!
    https://wpassist.me/how-to-enable-comments-for-all-posts-in-wordpress/

    function enable_comments_for_all(){
    global $wpdb;
    $wpdb->query( $wpdb->prepare(“UPDATE $wpdb->posts SET comment_status = ‘open'”)); // Enable comments
    $wpdb->query( $wpdb->prepare(“UPDATE $wpdb->posts SET ping_status = ‘open'”)); // Enable trackbacks
    } enable_comments_for_all();

    #1678132
    Ying
    Staff
    Customer Support

    Hi Heather,

    Glad you figured it out yourself 🙂

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.