Ver Mensaje Individual
  #3 (permalink)  
Antiguo 12/10/2010, 22:18
Avatar de newmesis
newmesis
 
Fecha de Ingreso: octubre-2010
Ubicación: Chillán, Chile, Chile
Mensajes: 42
Antigüedad: 13 años, 6 meses
Puntos: 0
Respuesta: !ayuda! mostrar post enteros en pagina principal

Código HTML:
Ver original
  1. <?php if (is_archive()) $post_number = get_option('polished_archivenum_posts');
  2. if (is_search()) $post_number = get_option('polished_searchnum_posts');
  3. if (is_tag()) $post_number = get_option('polished_tagnum_posts'); ?>
  4. <?php get_header(); ?>
  5.    
  6.     <?php global $query_string; query_posts($query_string . "&showposts=$post_number&paged=$paged"); ?>
  7.    
  8.     <div id="wrap">
  9.     <!-- Main Content-->
  10.         <img src="<?php bloginfo('stylesheet_directory');?>/images/content-top.gif" alt="content top" class="content-wrap" />
  11.         <div id="content">
  12.             <!-- Start Main Window -->
  13.             <div id="main">
  14.    
  15.                 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  16.  
  17.                     <?php include(TEMPLATEPATH . '/includes/entry.php'); ?>
  18.  
  19.                 <?php endwhile; ?>
  20.  
  21.                     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
  22.                     else { ?>
  23.                         <?php include(TEMPLATEPATH . '/includes/navigation.php'); ?>
  24.                     <?php } ?>
  25.  
  26.                 <?php else : ?>
  27.                     <?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
  28.                 <?php endif; wp_reset_query(); ?>
  29.             </div>
  30.             <!-- End Main -->
  31. <?php get_sidebar(); ?>
  32. <?php get_footer(); ?>