Make WPeMatico Insert Featured Image Into Post
-
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;
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Make WPeMatico Insert Featured Image Into Post’ is closed to new replies.