Ver Mensaje Individual
  #8 (permalink)  
Antiguo 15/10/2010, 19:47
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

Cita:
Iniciado por ElJavista Ver Mensaje
Muestra el contenido de archivo entry.php.
Código PHP:
Ver original
  1. <?php $thumb = '';
  2.      
  3.     $width = get_option('polished_thumbnail_width_usual');
  4.     $height = get_option('polished_thumbnail_height_usual');
  5.     $classtext = 'post_img';
  6.     $titletext = get_the_title();
  7.    
  8.     $thumbnail = get_thumbnail($width,$height,$classtext,$titletext,$titletext);
  9.     $thumb = $thumbnail["thumb"]; ?>
  10.  
  11. <!-- New Post-->
  12. <div class="new_post">
  13.     <h2 class="title"><a href="<?php the_permalink() ?>" title="<?php printf(__ ('Permanent Link to %s', 'Polished'), $titletext) ?>"><?php the_title(); ?></a></h2>
  14.    
  15.     <?php if (get_option('polished_postinfo1') <> '') include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
  16.    
  17.     <div class="postcontent">
  18.         <?php if($thumb <> '') { ?>
  19.             <a href="<?php the_permalink() ?>" title="<?php printf(__ ('Permanent Link to %s', 'Polished'), $titletext) ?>">
  20.                 <?php print_thumbnail($thumb, $thumbnail["use_timthumb"], $titletext , $width, $height, $classtext); ?>
  21.             </a>
  22.         <?php }; ?>
  23.        
  24.         <?php if (get_option('polished_blog_style') == 'false') { ?>
  25.             <p><?php truncate_post(445); ?></p>
  26.         <?php } else { ?>
  27.             <?php the_content(''); ?>
  28.         <?php }; ?>
  29.  
  30.         <span class="readmore_b"><a class="readmore" href="<?php the_permalink(); ?>"><?php _e('Read More','Polished'); ?></a></span>
  31.         <div class="clear"></div>
  32.     </div>  <!-- end .postcontent -->
  33. </div>
  34. <!-- End Post -->