about featured image

It seems you have used a lot of posts & category. So, Once you update/add the post then recursion will occur. So, I suggest you should use a cache plugin. Try to put ini_set( ‘memory_limit’, ‘512M’); in wp-config header file & check it.

Is it possible to show thumbnails along with recent post from a wordpress blog on static website’s homepage?

Updated answer below <?php define(‘WP_USE_THEMES’, false); require(‘blog/wp-blog-header.php’); ?> <div class=”row row-60 row-sm”> <?php $args = array( ‘numberposts’ => 3, ‘post_status’=>”publish”,’post_type’=>”post”,’orderby’=>”post_date”); $postslist = get_posts( $args ); foreach ($postslist as $post) : setup_postdata($post);?> <div class=”col-sm-6 col-lg-4 wow fadeInLeft”> <!– Post Modern–> <article class=”post post-modern”><a class=”post-modern-figure” href=”https://wordpress.stackexchange.com/questions/316782/<?php the_permalink( $post->ID ); ?>” target=”_top”> <?php echo get_the_post_thumbnail( $post->ID ); ?> … Read more

Images missing from Blog post page

Since your theme puts a default image in place of a not-found image, it’s hard to tell why the images aren’t there. But, I’d suspect an error in the theme template that displays your blog page. You would need to look at the theme template code to see what code is being used to show … Read more

How to convert feature image as background image

please use this code <?php $backgroundImg = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), ‘full’ );?> <div class=”header-wrap” style=”background: url(‘<?php echo $backgroundImg[0]; ?>’) no-repeat;”> <header class=”entry-header”> <h1 class=”entry-title”> <?php the_title(); ?> </h1> </header>

Serving a custom featured image for mobile

I would do this with Advanced Custom Fields and a Sass mixin: @mixin image-2x($image, $width, $height) { @media (min–moz-device-pixel-ratio: 1.3), (-o-min-device-pixel-ratio: 2.6/2), (-webkit-min-device-pixel-ratio: 1.3), (min-device-pixel-ratio: 1.3), (min-resolution: 1.3dppx) { background-image: url($image); background-size: $width $height; } } //Usage div.logo { background: url(“logo.png”) no-repeat; @include image-2x(“logo2x.png”, 100px, 25px); } Featured images or native custom fields could also … Read more