Video Photo Game Theme buradaki temanın ana sayfasında değişiklik yapmak istiyorum ama yapamıyorum
Yapmak istediğim o ana sayfadaki konuların belirli kategorilerden değilde, son açılan konuların hangi kategoride olursa olsun orada gözükmesi
Bu işlem karşılığında mathematicaltables.net ve hispanamango.net domainlerini verebilirim
Temanın index.php si bu
<?php get_header(); ?>
<div id="right-content">
<div class="entrytop"></div>
<div id="post-entry">
<?php if (have_posts()) : ?>
<h1 class="title">New Videos:</h1>
<?php $recent = new WP_Query("cat=1&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'">
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
<?php else: ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("photo"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
<?php endif; ?>
<div class="kategori"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
<div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
<div class="views"><?php if(function_exists('the_views')) { the_views(); } ?> </div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="clear"></div><br />
<h1 class="title">New Games:</h1>
<?php $recent = new WP_Query("cat=1&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'">
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
<?php else: ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("photo"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
<?php endif; ?>
<div class="kategori"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
<div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
<div class="views"><?php if(function_exists('the_views')) { the_views(); } ?> </div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="clear"></div><br />
<h1 class="title">New Photos:</h1>
<?php $recent = new WP_Query("cat=1&showposts=6"); while($recent->have_posts()) : $recent->the_post();?>
<div class="item1" onmouseover="this.className='item2'" onmouseout="this.className='item1'">
<?php if( get_post_meta($post->ID, "thumb", true) ): ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("thumb"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
<?php else: ?>
<p><a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
<img src="<?php $values = get_post_custom_values("photo"); echo $values[0]; ?>" height="120" width="160" alt="<?php the_title(); ?>" /></a></p>
<?php endif; ?>
<div class="kategori"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></div>
<div class="rate"><?php if(function_exists('the_ratings')) { the_ratings(); } ?></div>
<div class="views"><?php if(function_exists('the_views')) { the_views(); } ?> </div>
<div class="clear"></div>
</div>
<?php endwhile; ?>
<div class="clear"></div>
<?php else: ?>
<h2>Sorry, but you are looking for something that isn't here.</h2>
<?php endif; ?>
</div>
<?php include (TEMPLATEPATH . '/right-sidebar.php'); ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>