• Resolved A.N.D.

    (@and-1)


    Hello,

    I’m trying to use Postie in conjunction with Social Auto-Poster. I believe the developer contacted you, and you kindly released an update.

    As Postie is working fine to post to my blog, but still not automatically posting to Facebook and Twitter, I wanted to ask if I need to change any settings in Postie to enable it, or should it just work now?The developer of the social plugin said “We are using the publish_post hook to trigger the auto publish but this hook is not using in the postie plugin”. I believe you’ve made a change to Postie. Just need to know if I need to alter any settings in it to work?

    Thanks!

    Ted

    https://wordpress.org/plugins/postie/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Not sure what to tell you. I have confirmed that the publish_post hook is being called when Postie turns an email into a post.

    In order for me to get this to work, I added the following definition in wp-config.php:

    define(‘SOCIAL_MAIL_PUBLISH’, true);

    With this variable set to true, posts sent in through email and the Postie plugin were published to social media automatically.

    A side effect of this, which I actually liked, is that ALL posts are published to social media without the popup that was required before.

    Darn. That solution was so simple, but it breaks posting through the dashboard. You don’t get returned back to the post editing page like you should, you just get a blank white page.

    For round two, I edited postie-functions.php and added the:

    define(‘SOCIAL_MAIL_PUBLISH’, true);

    to the top of the PostToDB function.

    Problem with this is it will get overwritten when Postie gets upgraded.

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Add this to filterPostie.php in the wp-content directory:

    <?php
    function my_postie_post_function($post) {
        define('SOCIAL_MAIL_PUBLISH', true);
        return $post;
    }
    
    add_filter('postie_post_before', 'my_postie_post_function');
    
    ?>

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Using Postie with Social Auto-Poster’ is closed to new replies.