Title: Featured image creation code
Last modified: August 19, 2016

---

# Featured image creation code

 *  [nbaxley](https://wordpress.org/support/users/nbaxley/)
 * (@nbaxley)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/featured-image-creation-code/)
 * I’m using some custom code to make the header image a random featured image from
   among all the posts in a certain category. I’ve got that part working well, but
   I’d like to make it easier to create the header sized featured image. The posts
   in the category consist of a single image that the header is usually a portion
   of. What I’d like to be able to do is allow the user to easily create a featured
   image of the correct size from the full size image inserted in the post. I couldn’t
   find a plugin to do this, and I’m just getting started with WordPress development,
   so I’m not sure where to start on something like this. Can anyone point me in
   the right direction as to how to go about creating a tool like this?

Viewing 1 replies (of 1 total)

 *  [Mobbin01](https://wordpress.org/support/users/mobbin01/)
 * (@mobbin01)
 * [15 years, 1 month ago](https://wordpress.org/support/topic/featured-image-creation-code/#post-2028739)
 * I can’t help you out per say, but I will tell you that the current wordpress 
   template I am using has a featured post function, but not like the one you are
   describing, which is much better.
 * The problem with mine is that, yes the featured picture goes to the home page
   slider, but it also inserts the picture no matter what at the begging of your
   blog post at dimensions that you, the user do not control.
 * I would like to be able to insert an image of my choice into the home page slider,
   then not be forced to have that image at the beginning of my posts. Sort of a
   rant here but your development sounds good to me!

Viewing 1 replies (of 1 total)

The topic ‘Featured image creation code’ is closed to new replies.

## Tags

 * [featured image](https://wordpress.org/support/topic-tag/featured-image/)
 * [resize](https://wordpress.org/support/topic-tag/resize/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [Mobbin01](https://wordpress.org/support/users/mobbin01/)
 * Last activity: [15 years, 1 month ago](https://wordpress.org/support/topic/featured-image-creation-code/#post-2028739)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
