Ready to get started?Download WordPress


featured image only (10 posts)

  1. benwaynet
    Posted 3 years ago #

    Is it possible to have postie take the image in an email and just use it as the featured image of the post or just as an attachment to the post. Not put the image in the post at all?
    I'm looking to use the theme autofocus and it displays the featured post at the beginning of each post automatically.

    You can see what I'm trying at http://benway.net/wptest/

  2. nesttle
    Posted 3 years ago #

    I need the same thing!

  3. imbimp
    Posted 3 years ago #

    Very simple just add this line to postie-functions.php in your postie plugin directory...

    update_post_meta( $post_id, '_thumbnail_id', $id );

    around line 1354 (inside function postie_media_handle_upload)

  4. tobyleeming
    Posted 3 years ago #

    hey - sorry not that hot on php have tried doing this but could you be a little more exact if the original code is:

    function postie_handle_upload( &$file, $overrides = false, $time = null,  ) {
    	// The default error handler.
    	if (! function_exists( 'wp_handle_upload_error' ) ) {
    		function wp_handle_upload_error( &$file, $message ) {
    			return array( 'error'=>$message );

    What should it become?

    Will this then make attachments featured images but not insert them into posts? Hope so


  5. Accidental Webmaster
    Posted 3 years ago #

    Did anyone figure this out? Been trying to insert the suggested code in different spots in postie-functions.php for the past hour to no avail. Any solution would be GREATLY appreciated. Thanks!

  6. mikecowles
    Posted 3 years ago #

    I got it to work and took a screenshot here.

    Hope that helps! :)

    Mike. <><

  7. Iggmahn
    Posted 3 years ago #

    Can't get this to work. I placed the exact same code on the exact same place as you showed in the screenshot. But nothing.

  8. trash77
    Posted 3 years ago #

    not work for me :( i need to add featured image pleaseee

  9. Accidental Webmaster
    Posted 3 years ago #

    I was able to add a standard featured image to every incoming post by adding this line at the VERY end of the function PostToDB (right before the closing }:
    add_post_meta( $post_ID, '_thumbnail_id', 1694 );
    where 1694 is the image id...

    Hope this helps..

  10. trash77
    Posted 2 years ago #

    I could fix the problem with the plugin Auto Featured Image.
    I hope it will be useful!!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic