2 votes
Accepted

Set Featured Image of a post

To set a featured image when creating a post using wp_insert_post(), you can use the set_post_thumbnail() function // Create the post $post_id = wp_insert_post($args); // Check if the post was ...
vijay pancholi's user avatar
1 vote

Wordpress Media Library showing wrong preview size?

This is less a fix, and more of a hack to possibly achieve what you need. In my case, WP was using the largest possible image size as the preview thumbnail in the Media Library. As noted in other ...
donohoe's user avatar
  • 161

Only top scored, non community-wiki answers of a minimum length are eligible