• Resolved jdesignz

    (@jdesignz)


    Hi, thanks for this great plugin it works like a charm. But one more thing, I was wondering how will I able to enable comment system every time there’s a new post? Seems like it wasn’t included (yet?) on the plugin script. I had to manually enable them thru admin console which is a lot pain in the arse. Thanks in advance.

    Jhay

    https://www.ads-software.com/plugins/import-tweets-as-posts/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Chandan Kumar

    (@chandanonline4u)

    Thanks for your words Jhay. You can change it from “import-tweets-as-post.php”. Remove/Comment the line no 266:
    Change the following:

    $data = array(
       'post_content'   => $tweet_text,
       'post_title'     => $twitter_post_title,
       'post_status'    => $twitter_post_status,
       'post_type'      => $post_type,
       'post_author'    => 1,
       'post_date'      => $publish_date_time,
       'comment_status' => 'closed'
     );

    To

    $data = array(
       'post_content'   => $tweet_text,
       'post_title'     => $twitter_post_title,
       'post_status'    => $twitter_post_status,
       'post_type'      => $post_type,
       'post_author'    => 1,
       'post_date'      => $publish_date_time
     );

    This will help you in importing future tweets with comment status as opened. You can change your existing tweet’s post comment status by mysql query.

    Let me know if this helps you.

    Thread Starter jdesignz

    (@jdesignz)

    That gladly work without getting sweaty. Thanks you very much!

    Oh, for the SQL thingy, here’s what I did (via phpAdmin)

    UPDATE wp_posts SET comment_status = ‘open’;

    Again, thanks!

    Jhay

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Comments’ is closed to new replies.