How to change post featured image using a custom field of category?
I have added an image custom field for categories, in which I assign an image for every category. Something like this:
I have added an image custom field for categories, in which I assign an image for every category. Something like this:
While looking through the function reference entry for wp_insert_post(), I noticed that there’s no parameter in the array it requires which will allow me to set the ‘Featured Image’ for a post, displayed as the post thumbnail in my theme.
I am using WordPress 3.4.1 on Ubuntu 12.04 using Apache and PHP 5.3.X
I’m working on a site based on a fluid width css template which sets a max-width on images to the width of the column containing them, and I need to remove the inline width and height dimension attributes that WordPress adds to images.
I have a series of posts, all with featured images, but I need to be able to customise the crop top right corner. In this instance, I need them to be cropped from top right, but it would be useful to also know how to position that point myself.
I want to differentiate the featured image from post images.
WordPress has wp_oembed_get, which I use to get rich media content with embed.ly. I’ve previously used oEmbed api calls such as this. As you can see it provides thumbnail_url, which I like to use instead of embedding the video. How can I do this with wordpress?
I have been struggling for days to figure this one out. I have successfully implemented a form to submit posts from the front end of my site. ButI can’t figure out how to make the image uploads work.
I’m using post thumbnails to link to a page.
We would like users to be able to upload the post thumbnail when editing posts. How would this be done. I would imagine it would make use of the ajax functions of wordpress.