1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<ul class="smartbar-items">
<?php
$paged = ( get_query_var('paged') ) ? get_query_var('paged') : 1;
query_posts( array(
			'cat' => '22', 
			'posts_per_page' => 5,
			'meta_key' => 'krit_karakter',
			'orderby'=> 'menu_order',
			'order'=> 'DESC',
			'caller_get_posts' => 1, 
			'paged' => $paged ) );
		if (have_posts()) : while (have_posts()) : the_post(); ?>
		<li><a href="<?php the_permalink(); ?>"><img src="<?php bloginfo('url');?>/wp-content/files_mf/ <?php get_custom_field('game_poster', TRUE); ?>" width="80" height="110" alt="<?php the_title();?>" /> </a>
		<br /><?php the_title();?></a></li>

		<?php endwhile; ?>
		<?php else : endif; ?>
</ul>
	<?php wp_reset_query(); ?>