Support » Plugin: Auto Featured Image from Title » Images created for every comment form

  • I’ve just noticed many extra images in my media file.

    An image is created for every message I receive using contact forms.

    One post that I created and has 14 revisions, also now has 14 identical images in the media folder.

    Can this be restricted to just one per POST or page, and nothing else.

    I use Graphene Theme and Contact Form 7 for contact messages.

    https://wordpress.org/plugins/auto-featured-image-from-title/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Chris Huff

    (@brochris)

    Hi, sorry you’re experiencing this issue.

    I’ll have to look into the Contact Form 7 issue when I get back to my workstation.

    As for the revision issue, that certainly shouldn’t be happening. Take a look at my plugin’s code around line 53. You should see this:

    // If this is just a revision, don't generate an image
        if ( wp_is_post_revision($post->ID) )
        return;

    That should prevent it from creating images for revisions. Make sure the code is there.

    Are you updated to the latest version of the plugin? It should be 2.2.

    I just checked and yes, it is v 2.2

    and the code in the plugin is:

    // Check to see if the post already has a featured image
        if ( '' != get_the_post_thumbnail($post->ID) )
        return;
    
        // If this is just a revision, don't generate an image
        if ( wp_is_post_revision($post->ID) )
        return;
    Plugin Author Chris Huff

    (@brochris)

    Strange. That code should prevent post revisions from having images generated.

    Is there something unique about your WordPress environment?

    If you haven’t yet done so, please disable all other plugins to see if the problem still happens at that point.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Images created for every comment form’ is closed to new replies.