• Resolved benwaynet

    (@benwaynet)


    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 https://benway.net/wptest/

Viewing 9 replies - 1 through 9 (of 9 total)
  • I need the same thing!

    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)

    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

    Thanks

    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!

    I got it to work and took a screenshot here.

    Hope that helps! ??

    Mike. <><

    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.

    not work for me ?? i need to add featured image pleaseee

    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..

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

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘[Plugin: Postie] featured image only’ is closed to new replies.