Ver Mensaje Individual
  #12 (permalink)  
Antiguo 03/03/2010, 22:25
buji
 
Fecha de Ingreso: enero-2007
Mensajes: 348
Antigüedad: 17 años, 3 meses
Puntos: 1
Respuesta: Es posible que ciertos post no aparezcan en la pagina principal de Wordpre

Jalex, gracias nuevamente.

Esta es la plantilla que estoy usando (fijate que estoy filtrando las categorias 4 y 5).

Muchas Gracias.


<?php
/**
* Default Loop Template
*
* This file is loaded by multiple files and used for generating the loop
*
* @package K2
* @subpackage Templates
*/

// Post index for semantic classes
$post_index = 1;

query_posts('cat=4,5');

while ( have_posts() ): the_post(); ?>

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
<div class="entry-head">
<h3 class="entry-title">
<a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php k2_permalink_title(); ?>"><?php the_title(); ?></a>
</h3>

<?php /* Edit Link */ edit_post_link( __('Edit','k2_domain'), '<span class="entry-edit">', '</span>' ); ?>

<?php if ( 'post' == $post->post_type ): ?>
<div class="entry-meta">
<?php k2_entry_meta(1); ?>
</div> <!-- .entry-meta -->
<?php endif; ?>

<?php /* K2 Hook */ do_action('template_entry_head'); ?>
</div><!-- .entry-head -->

<div class="entry-content">
<?php the_content( sprintf( __('Continue reading \'%s\'', 'k2_domain'), the_title('', '', false) ) ); ?>
</div><!-- .entry-content -->

<div class="entry-foot">
<?php wp_link_pages( array('before' => '<div class="entry-pages"><span>' . __('Pages:','k2_domain') . '</span>', 'after' => '</div>' ) ); ?>

<?php if ( 'post' == $post->post_type ): ?>
<div class="entry-meta">
<?php k2_entry_meta(2); ?>
</div><!-- .entry-meta -->
<?php endif; ?>

<?php /* K2 Hook */ do_action('template_entry_foot'); ?>
</div><!-- .entry-foot -->
</div><!-- #post-ID -->

<?php endwhile; /* End The Loop */ ?>