aceasta eroare este , apare atunci cand dau pe cover-ul unui film adica pe imagine
Daca dau pe imaginea filmului la care am bagat si thriller , incepe sa afiseze thriller-ul
Dar eu vreau sa scot sa mai afiseze thriller-ul si sa ma duca direct pe pagina filmului.
Code: Select all
<?php get_header(); ?>
<div id="content">
<?php if (have_posts()) : ?>
<h2 class='pagetitle'>
<?php echo ('Videos from '. $term . ' genre') ?>
</h2>
<?php while (have_posts()) : the_post(); ?>
<div class="box rounded <?php if (++$counter % 4 == 0) { echo "lastbox"; }?>" id="post-<?php the_ID(); ?>">
<div class="postcover">
<?php $trailer = get_post_meta($post->ID, 'trailer_value', $single = true) ?>
<?php $poster = get_post_meta($post->ID, 'poster_value', $single = true) ?>
<a href="<?php echo $trailer; ?>" rel="prettyPhoto" ><img class="poster" src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $poster; ?>&h=270&w=200&zc=1" alt=""/></a>
</div>
<div class="boxtitle">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
</div>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<div id="navigation">
<?php
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
?>
</div>
<?php wp_reset_query();?>
<?php else : ?>
<div class="title"><h2>Oops.. Nothing Found !</h2></div>
<div class="cover"> <p>I think what you are looking for is not here or it has been moved. Please try a different search..</p> </div>
<?php endif; ?>
</div>
<?php get_footer(); ?>