Please in the beginning allow me to explain my question. I personally use wordpress to produce internet sites for expensive games, and so i do not have certain page for post's. I add each game by

<code>
    post-new.php?post_type=game
</code>

and u can easily see it isn't the standard publish for wordpress. I use this code from codex:

<code>
    <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); 
    $i = 0;
    $loop = new WP_Query(array('post_type' => 'game', 'post_per_page' => 5 ));
    while ($loop->post_type()) : $loop->game();
    ?>
</code>
<code>
    <?php if ( in_category('') ) { ?>
               <div class="post-cat-three">
     <?php } else { ?>
               <div class="post">
     <?php } ?>
     <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>

     <small><?php the_time('F jS, Y') ?> by <?php the_author_posts_link() ?></small>

     <div class="entry">
       <p>Category: <?php single_cat_title(); ?></p>

     </div>

     <p class="postmetadata">Posted in <?php the_category(', '); ?></p>  
</code>

It need to works best for posts, however in such situation I attempt to alter publish for games, try many different ways, try not to sucseed yet. Could anybody let me know things i have alternation in this code? i believe that promblem within the begining with 'have post' and 'the loop'. Thanks.

Just found one mistake: in_category('') MUST contain category ID in slug. http://codex.wordpress.org/Function_Reference/in_category#Parameters

Correct could be in_category('some-game-cat-slug')

plus worth to see http://new2wp.com/noob/query_posts-wp_query-differences/

I really hope this helps. This really is from the WordPress custom publish type (loop):

<?php query_posts('post_type=clients&showposts=1000'); 

if (have_posts()) : while (have_posts()) : the_post(); $nameofclient = get_post_meta($post->ID,'name_of_client',true); $clientcompany = get_post_meta($post->ID,'company_of_client',true);?> <div <?php post_class();?> id="ka-<?php the_ID(); ?>"> <h2 class="categorytitle"><a href="<?php the_permalink(); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_content(); ?><p class="ats_autors">/ <?php if($nameofclient): echo '<span class="client">'.$nameofclient.'</span>'; endif; if($clientcompany): if($nameofclient){echo ', ';} echo '<span class="client-company">'.$clientcompany.'</span>'; endif; ?></p></div><?php endwhile; endif;wp_reset_query();?>