codice:
<?php get_header(); ?>
<div id="content" class="narrowcolumn">
<h2>Articoli In Evidenza</h2>
<?php query_posts('cat=14'); ?>
<?php if (have_posts()) : while(have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2>"><?php the_title(); ?></h2>
<?php the_time(__('F jS, Y', 'kubrick')) ?>
<div class="entry">
<?php the_content(__('Read the rest of this entry »', 'kubrick')); ?>
</div>
<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '
'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('', 'kubrick') ); ?></p>
</div>
<?php endwhile; endif; ?>
<?php rewind_posts(); ?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php if (in_category('14')) continue; ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<h2>"><?php the_title(); ?></h2>
<?php the_time(__('F jS, Y', 'kubrick')) ?>
<div class="entry">
<?php the_content(__('Read the rest of this entry »', 'kubrick')); ?>
</div>
<p class="postmetadata"><?php the_tags(__('Tags:', 'kubrick') . ' ', ', ', '
'); ?> <?php printf(__('Posted in %s', 'kubrick'), get_the_category_list(', ')); ?> | <?php edit_post_link(__('Edit', 'kubrick'), '', ' | '); ?> <?php comments_popup_link(__('No Comments »', 'kubrick'), __('1 Comment »', 'kubrick'), __('% Comments »', 'kubrick'), '', __('', 'kubrick') ); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<?php if(function_exists('wp_page_numbers')) { wp_page_numbers(); } ?>
</div>
<?php else : ?>
<h2 class="center"><?php _e('Not Found', 'kubrick'); ?></h2>
<p class="center"><?php _e('Sorry, but you are looking for something that isn’t here.', 'kubrick'); ?></p>
<?php include (TEMPLATEPATH . "/searchform.php"); ?>
<?php endif; ?>
</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>