WordPress.org

Ready to get started?Download WordPress

Forums

WPeMatico
[resolved] Make WPeMatico Insert Featured Image Into Post (9 posts)

  1. nurihodges
    Member
    Posted 2 years ago #

    I needed WPeMatico to also insert the first image downloaded and attached from any RSS feed item the featured image for the post it is inserting. It's simple to make modifications to do so:

    After Line 591 insert:

    return $attach_id;

    Replace Line 525 with:

    $attachid = $this->insertfileasattach($imagen_src,$postid);
    
    if($custom_imagecount == 0) {
    	$this->insertPostMeta($postid, '_thumbnail_id', $attachid);
    	$custom_imagecount++;
    }

    Replace Line 509 with:

    $custom_imagecount = 0;

    http://wordpress.org/extend/plugins/wpematico/

  2. thebloodygoose
    Member
    Posted 2 years ago #

    Hi - that's exactly what I want! I've tried opening WPeMatico source files in a code editor but can't work out which file it is you changed. Hope you can help.

  3. nurihodges
    Member
    Posted 2 years ago #

    I just updated accidentally, so I have to re-do this change tomorrow. I will update you when I figure out which file it's in. :)

  4. thebloodygoose
    Member
    Posted 2 years ago #

    Terrific, thanks. I'd love to get it working properly.

  5. elitesociales
    Member
    Posted 2 years ago #

    Please let me know how to get this work.
    Thanks you very much.

  6. 3x7
    Member
    Posted 2 years ago #

    Hi nurihodges,

    Did you maybe found out which files have to be updated?

    Thanks

  7. afsoongar
    Member
    Posted 2 years ago #

    I'm waiting for upload

    With respect

  8. 3x7
    Member
    Posted 2 years ago #

    Nobody?
    Anyhow try adding "automatic post thumbnail" plugin, this should do the trick.

  9. etruel
    Member
    Plugin Author

    Posted 2 years ago #

    I'm including this feature at new version. thanks to all.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags