How to set default image as featured?
-
Using .htaccess I can use a single image url, ex https://www.mydomain.com/image.jpg, and it will display a different image on page load. How can I set this image as the featured image for a post? I tried the following, but it didn’t work:
<?php get_the_image( array( 'meta_key' => 'feature_img', 'size' => 'medium', 'width' => '270', 'height' => '270', 'feature_img' => 'https://www.mydomain.com/2/rand.jpg', 'image_class' => 'feature' ) ); ?>
- The topic ‘How to set default image as featured?’ is closed to new replies.