Forum Replies Created

Viewing 1 replies (of 1 total)
  • thx mate, your love helps me a lot.
    your code modified include the permalink at the image:

    <?php $values = get_post_custom_values("image"); // set the img custom name
    if (isset($values[0])) { // if there's a img in my custom field
    	?>
    		<a>" rel="bookmark" title="<?php the_title_attribute(); ?>"><img src="<?php $values = get_post_custom_values("image"); echo $values[0]; ?>" title="<?php the_title(); ?>"/></a>
    	<?php } // end if statement
    			// if there's no img do replace it with no-img
    	else { ?>
    		<a>" rel="bookmark" title="Read the rest of <?php the_title_attribute(); ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/images/no-img.gif" title="<?php the_title(); ?>"/></a>
    	<?php } ?>

Viewing 1 replies (of 1 total)