• Resolved Harry

    (@dibbyo456)


    I’m having a very weird issue. Couple of days ago, I bought the Postie AddOn for Categories because I fell in love with Postie plugin after an hour of installing it.

    Anyway, I’m using a plugin called Media File Renamer to edit the feature images for name according to the post title.

    When, I’m manually checking emails or creating posts using the button Check for email in Postie, it works fine, postie creating the post from the email & Media File Renamer changing the the feature image name. Everything is good.

    But when I’m using Check for email every 1 min or 5 min, Postie successfully post the email, but Media File Renamer renamer unable to change the name in that case.

    So,
    My question is what’s the difference when checking manually & automatically in Postie? Do they work in different method?

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

    (@wayneallen-1)

    There is no difference for Postie whether called by cron or by clicking the button.

    I have used other plugins which rename the media files and they work fine.

    Thread Starter Harry

    (@dibbyo456)

    @wayneallen-1 That is exactly why I said “weird”. But why it’s not working when using cron?

    MFR also provides an API to rename media files.

    mfrh_rename( $mediaId );

    So, I tried to add this

    <?php 
    function my_postie_post_after($post) {
        mfrh_rename( get_post_thumbnail_id( $post['ID'] ) );
        return $post;
    }
    add_action('postie_post_after', 'my_postie_post_after');
    ?>

    But does not work either. 🙁

    • This reply was modified 6 years, 1 month ago by Harry.
    • This reply was modified 6 years, 1 month ago by Harry.
    Plugin Author Wayne Allen

    (@wayneallen-1)

    >But why it’s not working when using cron?

    One of the big differences between using the button and cron is there is no user logged in during cron.

    Have you asked MFR if they have any ideas?

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘is Cronjob posts works differently than manually check?’ is closed to new replies.