Der unten aufgeführte Code produziert 10 vorschauen auf die Videos. ich möchte es auf 24 ändern, finde aber beim besten willen nicht die richtige Stelle. Kann mir jemand sagen welchen Wert ich ändern muss??
PHP
<!-- content -->
<div id="content" class="narrowcolumn">
<h1 class="main_title">Die neusten Video Tutorials</h1>
<?php if (have_posts()) : ?>
<div id="videos">
<?php $i=24; while (have_posts()) : the_post(); $i++; ?>
<!-- post -->
<div class="video<?php if($i%4==0) : ?> video_last<?php endif; ?>" id="video-<?php the_ID(); ?>">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo thman_get_limited_string($post->post_title,60); ?></a></h2>
<div class="thumb">
<a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php $thumb = thman_getcustomfield('tp_thumbnail',get_the_ID()); if(!empty($thumb)) : ?>
<img src="<?php echo $thumb; ?>" alt="<?php the_title_attribute(); ?>" />
<?php else : ?>
<img src="<?php bloginfo('template_url'); ?>/images/pic_empty.gif" alt="<?php the_title_attribute(); ?>" />
<?php endif; ?></a>
</div>
<div class="info">
<div class="info_left">
<p class="duration"><?php $duration = thman_getcustomfield('tp_duration',get_the_ID()); if(empty($duration)) $duration = '0:00'; echo get_duration($duration); ?></p>
<?php if(function_exists('the_views')) { ?><p class="views"><?php the_views(); ?></p><?php } else { $views = thman_getcustomfield('tp_viewcount',get_the_ID()); if(!empty($views)) echo '<p class="views">'.$views.'</p>'; } ?>
<p class="author"><?php the_author() ?></p>
</div>
<div class="info_right">
<?php if(function_exists('the_ratings')) { ?><div class="rating"><?php the_ratings(); ?></div><?php } else { $ratings = thman_getcustomfield('tp_rating_img',get_the_ID()); if(!empty($ratings)) echo '<div class="rating">'.$ratings.'</div>'; } ?>
</div>
</div>
</div>
<?php if($i%4==0) : ?><div class="clear"></div><?php endif; ?>
<!-- /post -->
Alles anzeigen