View Single Post
Old 11-07-2011, 08:38 PM  
bigmath
Confirmed User
 
Join Date: Mar 2003
Posts: 884
Ok here my situation. I have a Post with a description and IMAGE * <img src="timthumb.php?src=nhob-396.jpg" alt="" border="1" /> * but I think I need a special code on my post for the picture to be take from there and move on the main page because right now the noimage.jpg appear on the page.

The main page code :

<div class="fpslide">
<div class="photo">
<a href="<?php the_permalink() ?>" title="<?php the_title() ?>">
<?php
$key = 'thumbnail';
$themeta = get_image_path($post->ID,$key);

if($themeta != '') {

if($timthumb == 'on') {

echo '<img src="timthumb.php?src='.$themeta.'&amp;h=300&amp;w =490&amp;zc=1" alt="'.get_the_title().'" />';

} else {

echo '<img src="'.$themeta.'" alt="'.get_the_title().'" />';

}

} else {
echo '<img src="'.get_bloginfo('template_url').'/images/noimage.jpg" alt="" />';
}
?>

</a>
</div>
__________________
Adult Webmaster Empire
bigmath is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook