Support » Fixing WordPress » get image from post

  • How do you get a corresponding image from a post???

    i am creating a custom template index which loops thru the posts and i like to show an image if a post has one and otherwise show a image_placeholder

    if($imgSRC != ''){
    here the first image of post??
    } else {
    $imgSRC = 'image_placeholder.gif';
    }
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘get image from post’ is closed to new replies.