Ver Mensaje Individual
  #3 (permalink)  
Antiguo 14/12/2010, 11:32
AlbertoGarcia
 
Fecha de Ingreso: mayo-2009
Ubicación: Fuerteventura
Mensajes: 324
Antigüedad: 15 años
Puntos: 19
Respuesta: Mostrar posts por tipo dentro de una página de categoría

Muchísimas gracias pleter, me has ayudado mucho, puede que use el plugin WP-Sticky. Al final de cabezota lo conseguí armar precisamente con sticky post, lo dejo aquí por si le sirve a alguien:

Código PHP:
<!-- ++++++ COLUMNA PRINCIPAL ++++++++++++ -->
<h2 class="pagetitle"><?php echo single_cat_title(); ?></h2>
<!-- Este primer loop muestra los posts marcados como fijos -->
<?php if (have_posts()) :
   
$sticky get_option('sticky_posts');
   
$argsFicha = array(
     
'post__in' => $sticky,
     
'cat' => $cat,
     
'showposts' => 4,
   );
   
query_posts($argsFicha);
   while (
have_posts()) : the_post(); ?>
<div class="vcard destacado">
<h3 class="fn org" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
<?php the_content(); ?>
</div>
<?php endwhile; else: ?>
<h2 class="center">No encontrado</h2>
<?php include (TEMPLATEPATH '/searchform.php'); ?>
<?php 
endif; ?>

<ul id="listado">
<!-- Este loop muestra los demás posts exceptuando los marcados como fijos -->
<?php if (have_posts()) : ?>
  <?php
    $paged 
= (get_query_var('paged')) ? get_query_var('paged') : 1;
    
$sticky get_option('sticky_posts');
    
$args = array(
      
'post__not_in' => $sticky,
      
'paged' => $paged,
      
'caller_get_posts'=> 1,
      
'cat' => $cat,
    );
    
query_posts($args); ?>
    <?php while (have_posts()) : the_post(); ?> 
<li class="vcard">
<h3 class="fn org" id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
<?php the_content(); ?>
</li>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php next_posts_link('&laquo; Página anterior'?></div>
<div class="alignright"><?php previous_posts_link('Página siguiente &raquo;'?></div>
</div>
<?php else : ?>
<p><?php _e('Lo siento, no encontré nada para mostrar'); ?></p>
<?php endif; ?>
</ul>
<!-- Columna principal end -->
Gracias de nuevo

Salud!