Redirección a entrada de imagen en Slider

  • Autor Autor Rulo
  • Fecha de inicio Fecha de inicio
R

Rulo

Delta
Redactor
Hola, pues el problema no se si sea sencillo o no tan facil pero es el siguiente y espero que alguien me pueda ayudar.

Tengo un slider en la pagina principal de mi sitio y todo va bien, excepto que las imagenes dentro del slider no redirigen a la entrada de la misma imagen, de hecho no redirigen a nada si le da click a una.

el codigo es el siguiente:

HTML:
<?php
global $options;
foreach ($options as $value) {
    if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
$dateformat = get_option('date_format');
$timeformat = get_option('time_format');
?>
 
 
<div id="feature">

	<?php 
		$catid5 = $wpzoom_featured_category_5;
		$cat5 = get_category($catid5,false);
		$catlink5 = get_category_link($catid5);
		$breaking_cat5 = "cat=$catid5";
	?>
        
        
 <!-- tab panes -->
<div id="panes">
	
 <?php $headline = new WP_Query('showposts=5&' . $breaking_cat5 ); while($headline->have_posts()) : $headline->the_post(); ?>

	<div>
	
  		   <?php unset($photo);
				$photo = catch_that_image (get_the_id(), '', '');
				 
			   if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
				 the_post_thumbnail(array(520,9999, true)); 
			   }
			  
			   else{ 
			   
				 if ($wpzoom_cf_use == 'Yes')
				 {
				  $photo = get_post_meta($post->ID, $wpzoom_cf_photo, true);
				 } // if CF used
				 else
				 {
				  if (!$photo)
				  {
					$photo = catch_that_image($post->ID);
				  }
				 } // if CF not used
				 
				 if ($photo)
				 {
				?>
				   <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=600&amp;h=307&amp;zc=1&amp;src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" /> 
				<?php  
				 }
				 else
				 {
				  echo"<img src=\""; bloginfo('template_directory'); echo"/images/blank.jpg\" />";
				 } // if $photo still does not exist

			  } // if theme does not have a thumbnail
		  ?> 
			
		<h2><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2>
		
		<ul class="post-meta"><li class="date"><?php the_time("$dateformat $timeformat"); ?></li> <li class="comments"> <?php comments_popup_link('0', '1', '%'); ?></li>  <?php edit_post_link( __('Edit'), ' ', ''); ?></ul> 	
		
		<?php the_excerpt(); ?>
		
		 
	</div>
 <?php endwhile; ?>

</div>

<br clear="all" />


<!-- navigator -->
<div id="navi">
	<ul>
	
		<?php $teaser_small = new WP_Query('showposts=5&' . $breaking_cat5 ); while($teaser_small->have_posts()) : $teaser_small->the_post(); ?>

	
 		<li>
			<a href="#">
			<?php unset($photo);
				$photo = catch_that_image (get_the_id(), '', '');
				 
			   if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
				 the_post_thumbnail(array(60,9999, true)); 
			   }
			  
			   else{ 
			   
				 if ($wpzoom_cf_use == 'Yes')
				 {
				  $photo= get_post_meta($post->ID, $wpzoom_cf_photo, true);
				 } // if CF used
				 else
				 {
				  if (!$photo)
				  {
					$photo = catch_that_image($post->ID);
				  }
				 } // if CF not used
				 
				 if ($photo)
				 {
				?>
				 <img src="<?php bloginfo('template_directory'); ?>/scripts/timthumb.php?w=60&amp;h=50&amp;zc=1&amp;src=<?php echo $photo; ?>" alt="<?php the_title(); ?>" /> 
				<?php  
				 }
				 else
				 {
				  echo"<img src=\""; bloginfo('template_directory'); echo"/images/blank2.jpg\" />";
				 } // if $photo still does not exist

			  } // if theme does not have a thumbnail
		  ?> 			</a>
		</li>
		
		<?php endwhile; ?>
		
	</ul>
</div>
 
	
 	<?php wp_reset_query(); ?>
 	</div>[/CODE]

Lo que quisiera saber es si puedo editar el codigo para que al hacer click en alguna imagen me lleve a la entrada de dicha imagen.