Problem With My Featured Image
-
<?php
$width = “half”;
if ( (function_exists(‘has_post_thumbnail’)) && (has_post_thumbnail()) ) :
$id = get_post_thumbnail_id();
$ar = wp_get_attachment_image_src( $id , array(9999,9999) );$theImageSrc = $ar[0];
global $blog_id;
if (isset($blog_id) && $blog_id > 0) {
$imageParts = explode(‘/files/’, $theImageSrc);
if (isset($imageParts[1])) {
$theImageSrc = ‘/blogs.dir/’ . $blog_id . ‘/files/’ . $imageParts[1];
}
}
?><div class=”imageholder”>
” class=”imageholder”>
<?php echo “<img src='”.URL.”/timthumb.php src=”.urlencode($theImageSrc).”&h=129&w=129zc=3′ alt=’postimage’ />”;
?>I buy Premium theme but featured image does’n work , are this php right ? or incorect ?
- The topic ‘Problem With My Featured Image’ is closed to new replies.