Skip to content

Instantly share code, notes, and snippets.

@nirendra
Created November 27, 2013 23:24

Revisions

  1. nirendra renamed this gist Nov 27, 2013. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. nirendra created this gist Nov 27, 2013.
    7 changes: 7 additions & 0 deletions getFeaturedImage
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    function webspec_get_featured_img($id){

    $image = wp_get_attachment_image_src( get_post_thumbnail_id( $id), 'single-post-thumbnail' );

    echo $image[0];

    }