WordPress.org

Ready to get started?Download WordPress

Forums

Get the Image
How to set default image as featured? (1 post)

  1. maineyak
    Member
    Posted 1 year ago #

    Using .htaccess I can use a single image url, ex http://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' => 'http://www.mydomain.com/2/rand.jpg', 'image_class' => 'feature' ) ); ?>

    http://wordpress.org/extend/plugins/get-the-image/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by maineyak
  • This topic is not a support question
  • WordPress version: 3.1

Tags

No tags yet.