Featured images
-
As it has already been explained by one of the developers, the way featured images are set is the following:
The way the import mechanism works is that it downloads all of the posts. It then runs through those in batches looking for images of the form:
<img src=”yyy”>
or
<img src=”yyy”>For each image
downloads the biggest image size.
Use big image to re-generate the smaller sizes based on your wordpress settings, it is this step that times out in your case.
Creates an “attachement” record in the post table.
updates the html in the post to point at the new images.
If this is the first image then set it as the “featured” imageThis is very similar to the way the WordPress editor works.
The bold part can be disabled by commenting out the following lines in the blogger-importer-blog file:
//if ($imgcount == 0) //{ //set_post_thumbnail($post_id, $att_id); //}
But in the end this is quite a useful feature.
The “problem” is that if a post was already starting with an image, this image is set as featured and as a result those posts have the same image showing up twice.
My question is how can one modify the plugin in such a way that the first image is set as featured, but it removed from the post?
Thank you!
- The topic ‘Featured images’ is closed to new replies.