22/06/2010, 00:10
|
| | Fecha de Ingreso: junio-2010
Mensajes: 6
Antigüedad: 14 años, 6 meses Puntos: 0 | |
Respuesta: ¿Como Resumir las entradas de una categoria? Gracias lo arregle,
Problema solucionado.
Ahora planteo otra cuestion.
En la plantilla revolution church,quisiera cambiarle el aspecto principal y en lugar que saliera en pequeño todas las categorias como sale que saliera como ,entradas reciente todo osea como una pagina normal que actualizas y se van publicando una debajo de otras por orden,resulta que me gusta este modelo de plantilla,pero para los lectores que estan acostrumbrados al anterior estilo... les es mas facil.
Gracias de antemano y aqui dejo el codigo que sale en el home de como lo tengo echo, (no se si es de ahi donde se ha de corregir)
<?php get_header(); ?>
<div id="content">
<div id="homepage">
<?php /*Check for the 'gallery_styles' function. if it's there, then include it. If not, do nothing*/ ?>
<?php if (function_exists('gallery_styles')) : ?>
<div id="homepagetop">
<div class="featuredtop">
<?php include (ABSPATH . '/wp-content/plugins/content-gallery/gallery.php'); ?>
</div>
</div>
<?php endif; ?>
<div id="homepageleft">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<div class="hpfeatured">
<h3>NOTICIAS EXPRESS</h3>
<!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "thumbnail". Recommended image size is 70x70, as the stylesheet is written for this size.-->
<?php $recent = new WP_Query("cat=111&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(50, ""); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
<!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL-->
<b><a href="http://www.spaceboxing.com/category/noticias-express/" rel="bookmark">Leer más sobre esta categoria</a></b>
</div>
</div>
<div id="homepageright">
<!--This section is currently pulling category ID #1, and can be switched by changing the cat=1 to show whatever category ID you would like in this area.-->
<div class="hpfeatured">
<h3>ENTREVISTAS NACIONALES</h3>
<!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "thumbnail". Recommended image size is 70x70, as the stylesheet is written for this size.-->
<?php $recent = new WP_Query("cat=6&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "thumbnail", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "thumbnail", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(50, ""); ?>
<div style="border-bottom:1px dotted #94B1DF; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
<!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL-->
<b><a href="http://www.spaceboxing.com/category/entrevistas-nacional/" rel="bookmark">Leer más sobre esta categoria</a></b>
</div>
</div>
<div id="homepagebottom">
<div class="hpbottom">
<h3>KICK-THAI-K-1 NACIONAL</h3>
<!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "hpbottom". Recommended image size is 70x70, as the stylesheet is written for this size.-->
<?php $recent = new WP_Query("cat=15&showposts=5"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(150, "[Read more of this review]"); ?>
<div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
<!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL-->
<b><a href="http://www.spaceboxing.com/category/kick-thai-k-1-nacional/" rel="bookmark">Leer más sobre esta categoria</a></b>
</div>
</div>
<div id="homepagebottom">
<div class="hpbottom">
<h3>BOXEO NACIONAL</h3>
<!--This is where the thumbnails are found for the homepage bottom section - note the custom field name for this image is "hpbottom". Recommended image size is 70x70, as the stylesheet is written for this size.-->
<?php $recent = new WP_Query("cat=38&showposts=4"); while($recent->have_posts()) : $recent->the_post();?>
<?php if( get_post_meta($post->ID, "hpbottom", true) ): ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php echo get_post_meta($post->ID, "hpbottom", true); ?>" alt="<?php the_title(); ?>" /></a>
<?php else: ?>
<a href="<?php the_permalink() ?>" rel="bookmark"><img style="float:left;margin:0px 10px 0px 0px;" src="<?php bloginfo('template_url'); ?>/images/thumbnail.png" alt="<?php the_title(); ?>" /></a>
<?php endif; ?>
<b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
<?php the_content_limit(150, "[Read more of this review]"); ?>
<div style="border-bottom:1px dotted #2255AA; margin-bottom:10px; padding:0px 0px 10px 0px; clear:both;"></div>
<?php endwhile; ?>
<!--This is where you can specify the archive link for each section. Replace the # with the appropriate URL-->
<b><a href="http://www.spaceboxing.com/category/boxeo-nacional/" rel="bookmark">Leer más sobre esta categoria</a></b>
</div>
</div>
<?php include(TEMPLATEPATH."/sidebar.php");?>
</div>
<!-- The main column ends -->
<?php get_footer(); ?> |