How do you get the post thumbnail size?
I know how to set the size of a post thumbnail image using the WP Admin Media Settings or using this function:
I know how to set the size of a post thumbnail image using the WP Admin Media Settings or using this function:
Is there any filter available to set the naming convention of those auto generated thumbnails?
I’m working on building out a custom theme and have been struggling with this one for a bit. I am trying to modify the HTML output of the_post_thumbnail(); function. I need to do this because I am trying to support retina images on my site and would rather bake the functionality into my theme than load a plugin on the backend.
I am writing a custom theme/plugin in which I need to download images programatically from certain webpages to the upload folder and then insert them as part of the post.
I’m currently working on importing an MovableType blog into WordPress. The blog has several thousand posts, and each post has an image associated with it.
I want to query 6 posts, but only those which have a featured image attached. I am using meta_key method for this with WP_Query as such:
No matter what I do – I can’t get the hard cropping mode in the_post_thumbnail to work.
I’m building a theme in _S and using native Gutenberg blocks.