Ver Mensaje Individual
  #6 (permalink)  
Antiguo 09/06/2009, 09:47
Avatar de DragonX
DragonX
Colaborador
 
Fecha de Ingreso: mayo-2002
Ubicación: Funkyland
Mensajes: 8.433
Antigüedad: 22 años
Puntos: 177
Respuesta: Resumen de notas en category

Cita:
Iniciado por rogertm Ver Mensaje
En tu theme directory debes tener un archivo llamado category.php, si no lo puedes crear y la estructura es la misa que los demás (single.php, page.php, etc...) ahi debes tener un codigo mas o menos como este:

Código php:
Ver original
  1. <?php get_header(); ?>
  2.  
  3.     <?php if (have_posts()) : while (have_posts()) : the_post(); ?>    
  4.         <?php the_excerpt(); ?>
  5.         <?php comments_template(); ?>
  6.         <?php endwhile; else: ?>
  7.     <?php endif; ?>
  8.    
  9. <?php get_footer(); ?>

En escencia es algo asi, ya el html se lo metes tu... que eres especialista en eso
Gracias amigo!!! pero no me anda....... te muestro donde lo tengo, seguramente lo puse en cualquier lado....

Código php:
Ver original
  1. <?php
  2. /**
  3.  * Template: Category.php
  4.  *
  5.  * @package WPFramework
  6.  * @subpackage Template
  7.  */
  8.  
  9. get_header();
  10. ?>
  11.             <!--BEGIN #primary-->
  12.             <div id="left_column" class="hfeed">
  13.             <div id="left_column_content">
  14.             <?php if ( have_posts() ) : ?>
  15.                 <h1 class="tituarchivo"><?php single_cat_title(); ?></h1>
  16.                  <?php the_excerpt(); ?>
  17.                 <?php while ( have_posts() ) : the_post(); ?>
  18.                
  19.                 <!--BEGIN .hentry-->
  20.                 <div id="post-<?php the_ID(); ?>" class="<?php semantic_entries(); ?>">
  21.                     <h2 class="entry-title"><a href="<?php the_permalink(); ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
  22.  
  23.                     <!--BEGIN .entry-meta .entry-header-->
  24.  
  25.                                     <div class="entry-meta entry-header">
  26.                    <div class="comments_bubble">
  27.                                         <p><span class="comment-count"><a href="<?php comments_link(); ?>"><?php comments_number( '0', '1', '%' ); ?></a></span></p>
  28.                                     </div>
  29.                                         <?php if ( framework_get_terms( 'tags' ) ) { ?>
  30.                                         <span class="meta-sep">|</span>
  31.                                         <span class="entry-tags">Tagged <?php echo framework_get_terms( 'tags' ); ?></span>
  32.                                         <?php } ?>
  33.                                         <p class="date"><span class="published"><span class="published-time" title="<?php the_time( get_option('date_format') .' - '. get_option('time_format') ); ?>"><?php the_time( get_option('date_format') ); ?></span></span> | Categor&iacute;a <?php echo framework_get_terms( 'cats' ); ?></p>
  34.                                     </div>
  35.                                    
  36.                                     <div class="clear"></div>  
  37.                    
  38.                    
  39.                    
  40.                    
  41.  
  42.                     <!--BEGIN .entry-content .article-->
  43.                     <div class="entry-content article">
  44.                         <?php the_content( 'Read more &raquo;' ); ?>
  45.                         <?php wp_link_pages( array( 'before' => '<div id="page-links"><p><strong>Pages:</strong> ', 'after' => '</p></div>', 'next_or_number' => 'number' ) ); ?>
  46.                     <!--END .entry-content .article-->
  47.                     </div>
  48.  
  49.                     <!--BEGIN .entry-meta .entry-footer-->
  50.                     <div class="entry-meta entry-footer">
  51.                        
  52.                         <img src="<?php bloginfo('template_url'); ?>/images/post_bottom.jpg" class="post_bottom" alt="" />
  53.                     <!--END .entry-meta .entry-footer-->
  54.                     </div>
  55.                 <!--END .hentry-->
  56.                 </div>
  57.  
  58.                 <?php endwhile; ?>
  59.                 <?php include ( TEMPLATEPATH . '/navigation.php' ); ?>
  60.                 <?php else : ?>
  61.  
  62.                 <!--BEGIN #post-0-->
  63.                 <div id="post-0" class="<?php semantic_entries(); ?>">
  64.                     <h2 class="entry-title">Not Found</h2>
  65.  
  66.                     <!--BEGIN .entry-content-->
  67.                     <div class="entry-content">
  68.                         <p>Sorry, but you are looking for something that isn't here.</p>
  69.                         <?php get_search_form(); ?>
  70.                     <!--END .entry-content-->
  71.                     </div>
  72.                 <!--END #post-0-->
  73.                 </div>
  74.  
  75.             <?php endif; ?>
  76.             <!--END #primary .hfeed-->
  77.             </div>
  78.             <div id="page_footer_credits">
  79.                                 <a href="http://www.wordpress.org"><img src="<?php bloginfo('template_url'); ?>/images/wordpress_logo.jpg" id="wordpress_logo" alt="" /></a>
  80.                                 <p>designed by <a href="http://tim.bramblingdesign.com">Tim Sainburg </a>| Built on <a href="http://wpframework.com/"> Wordpress Framework</a> | <a href="<?php bloginfo('atom_url'); ?>">Atom Feed</a> | <a href="<?php bloginfo('rss2_url'); ?> ">RSS 2.0</a> </p>
  81.  
  82.  
  83.                             </div>
  84. </div>
  85. <?php get_sidebar(); ?>
  86. <?php get_footer(); ?>
__________________
Desarrollos dosLotos
Calendario Maya, Meditación, Osho