Support » Plugin: Bulk Images to Posts » EXIF date as post date fix (+ a few other notes)

  • Hi! I’ve just came across your plugin, and it seems perfect for the task. Thank you!

    However, there was one little and obscure thing missing for me, it’s setting the EXIF time and date as post time and date. I barely know how to code, but the fix is quite easy.

    I added the following lines to (bip-dropzone.php):

            if ( function_exists( 'exif_read_data' ) ) {
                $exif = exif_read_data( $attachment->guid );
            }

    and then added to the $post_information array the following:
    'post_date' => $exif['DateTimeOriginal'],

    As for now, everything works smoothly. I think, if somebody else would like to see this little feature, it would be nice to see it added in the future versions, with a checkbox in the settings to turn it on or off.

    P.S. I also removed alt="'. $thetitle .'" from the image tag, because i’m changing the names after posting anyway. Would be nice to see this done with a checkbox in the setting too.

    P.P.S. For some reason, in the settings I see two “draft” options for post status and two “post” options in the post type. This has nothing to do with the exif fix, and it doesn’t affect a performance at all. I think this most probably has something to do with the way my wordpress website is set up instead of something with the plugin, but it’s nevertheless odd.

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

    (@mezzaninegold)

    Hi Vokabre,

    I’ll get that added into the next update. I’m putting a side sometime in the next month or two to do a overhaul of the plugin, so any other suggestions would be welcome.

    Thanks again,
    A.

    Would be so great. Thank you to both of you.
    Desired feature: set post tags with image’s tags

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘EXIF date as post date fix (+ a few other notes)’ is closed to new replies.