How to find post with broken image link and delete that post
An easy solution to crawl your website and find broken links and images on your website is this plugin: https://wordpress.org/plugins/link-checker
An easy solution to crawl your website and find broken links and images on your website is this plugin: https://wordpress.org/plugins/link-checker
Yes, you can choose to regenerate the thumbnails for specific images. You have 2 options. 1- Create a simple plugin Generating thumbnails is done via the wp_generate_attachment_metadata() function, which you can use to generate thumbnails manually. To do so, make a simple plugin that loops through a couple of attachment IDs and generates thumbnail for … Read more
Set Featured Image by URL Form Post
Duplicated featured image is not showing
As suggested by @RobertWent, it was a simple matter of a CSS issue. A rogue display: flex; on the image container was the troublemaker, and once removed, the issue was resolved.
I don’t know if you’re still looking for a solution, but you can use the post_thumbnail_html filter in you php file to return a fallback; like so. /** * Set the default image if none exists. * * @param string $html The post thumbnail HTML. * @param int $post_id The post ID. * @param int … Read more
I have found a solution by myself… I was installing a plugin called “Multiple Post Thumbnails” That is really quite useful…
Have a look at get_the_post_thumbnail. You can use that in your loop next to the post title.
Look at the wp-content/uploads/ directory. Does your cropped image exists there? (e.g. myimage-185×185.jpg). If not, you could try to call add_image_size() on the init action hook. functions.php function wpse27579_addImageSizes() { add_image_size(‘thumbnail-gallery’, 185, 185, true); } add_action(‘init’, ‘wpse27579_addImageSizes’);
You can use the_post_thumbnail() to output the thumbnail image directly. <?php $count = 1; ?> <?php while (have_posts()){ the_post(); ?> <article id=”<?php echo $post->post_name; ?>” class=”post<?php post_class(); ?>” itemscope itemtype=”http://schema.org/Article”><?php if ($count == 1 && has_post_thumbnail( get_the_ID() ) ){ the_post_thumbnail(‘blog-thumbnail’, array(‘class’ => ‘banner’, ‘item_prop’ => ‘image’)); } $count++; ?> <header> <h1 itemprop=”name”><a href=”https://wordpress.stackexchange.com/questions/35617/<?php the_permalink(); ?>” … Read more