Query the post which have a thumbnail
I’ve got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail.
I’ve got a highlight section on the header of my website which shows the title and the thumbnail of the last X posts having a thumbnail.
I am able to add a post featured image to the RSS feed like so:
I have categories on my website. I have to add a background image to each category while creating the category without using any plugin.
I have a custom post type for a slider and I’m using the Featured Image thumbnail uploader to set the image.
I setup WordPress on my own server and it’s up and running…one thing that I have noticed is that WordPress doesn’t generate any images I upload. Usually when I upload an image through WordPress it will generate a thumbnail, medium, and large sized image. WordPress installed without error and everything else is working fine. I have tried to rebuild the thumbnails, but that doesn’t work 🙁
How can I remove the Featured Image meta box? I’ve tried using the remove_meta_box function and specifying the boxes ID but it doesn’t seem to work like it does for the other native meta boxes.
Given a Vimeo ID, I can retrieve a thumbnail from the video via Vimeo Simple API. Rather than call the API every time my page loads I want to set the image as the post thumbnail using the save_post hook (similar to this question).
Up to now, I have had no problems with the background-image thumbnails in my theme. However, now that I’m trying to use an SVG as the featured image, something is breaking. The problem seems to related to the width of the SVGs being returned as zero by wp_get_attachment_image_src(). So what I am I trying to do is figure out how to extract the width and height information from the SVG then set them to the appropriate values in the SVGs database fields, isn’t proving easy.
I want to know how to get image url on the_post_thumbnail()
So – at a client’s request, I am in need of being able to resize an image not the standard WordPress way… but from an image pulled-in from a theme option. I can’t simply use the custom_header area, as there will be two or three (I also have some options once the image is uploaded to let the user choose how the link should function (page, post, category, no link, external link, etc)). I’m using Options Framework Theme with great success and I can retrieve the image src just fine, it’s a matter of if this can somehow be used in combination with the add_image_size() function normally used for post thumbnails. I’d REALLY rather not go the timthumb route and stick with WordPress APIs (I know that’s a little contradictory to what I am doing in the first place…). Any help would be greatly appreciated. Thanks!