Support » Fixing WordPress » Get Featured images URL

  • $buffy .= ‘ . $this->href . ‘
    $buffy .=’ . $this->title . ‘

    How do I get the URL of my featured image?

    $buffy .=’ . $this->???????? . ‘

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Have you tried this ?

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' );
    
    $url = $image[0];

    Safeer

    Thread Starter Danielnn

    (@danielnn)

    Okay, but how do I call it with Buffy $buffy .=’ . $this->???????? . ‘

    Could you write me the function and the call?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Get Featured images URL’ is closed to new replies.