owner/group issue on server

The code should be owned by the FTP User and Group, but then have permissions set wide enough to allow the webserver to read the files. Typically this is 644 for files and 755 for directories. More information: http://codex.wordpress.org/Changing_File_Permissions#Permission_Scheme_for_WordPress

Assign one featured image to multiple posts?

I’d suggest you check the $featuredimg URL. If there is already an attachment with this URL just get the ID and call update_post_meta( $pid, ‘_thumbnail_id’, $thumb_id ); There’s a useful function to get the ID for an existing URL: Philip Newcomer function pn_get_attachment_id_from_url( $attachment_url=”” ) { global $wpdb; $attachment_id = false; // If there is … Read more