Los Posts en las Categorias se ven diferentes al Home
-
Hola como va!
Les comento que hize un blog y tenia el problema de que cuando entraba a la categoria los posts se veian sin imagenes y resumidos y con estilos diferentes al index, a esto lo pude solucionar por suerte.
Ahora el problema que tengo es que en las categorias el TITULO se corta a los 420px cuando deberia llegar a los 660px al igual que en el home. Alguien podria decirme cual es el error en este codigo para que ocurra esto??
Otro problema que tengo es que en explorer el primer post en las categorias se ve un gran espacio en blanco. ¿¿¿??
Alguien que sepa interpretar un poco el codigo y me pueda ayudar se los agradecere.
<?php get_header(); ?>
<!–include sidebar–><div id=»content»>
<!–the loop–>
<div class=»post» id=»post-<?php the_ID(); ?>»>
<?php if (have_posts()) : ?>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<h7>
<?php echo single_cat_title(); ?></h7>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
<h2>Archive for <?php the_time(‘F jS, Y’); ?></h2>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
<h2>Archive for <?php the_time(‘F, Y’); ?></h2>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
<h2>Archive for <?php the_time(‘Y’); ?></h2>
<?php /* If this is a search */ } elseif (is_search()) { ?>
<h2>Search Results</h2>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
<h2>Author Archive</h2>
<?php /* If this is a paged archive */ } elseif (isset($_GET[‘paged’]) && !empty($_GET[‘paged’])) { ?>
<h2>Blog Archives</h2>
<!–do not delete–>
<?php } ?><!–loop article begin–>
<?php while (have_posts()) : the_post(); ?>
<!–post title as a link–>
<h2 class=»post» id=»post-<?php the_ID(); ?>»>» rel=»bookmark» title=»Permanent Link to <?php the_title(); ?>»><?php the_title(); ?></h2><!–post time–>
<p class=»date»><?php the_time(‘F j, Y’) ?></p>
<!–optional excerpt or automatic excerpt of the post–>
<?php the_content(); ?>
<!–que se o–>
<p class=»details_small»>
<?php _e(«Category:»); ?> <?php the_category(‘, ‘) ?>
<?php edit_post_link(__(‘Edit This’), »,’ |’); ?>
<?php //comments_popup_link(__(‘Comments (0)’), __(‘Comments (1)’), __(‘Comments (%)’)); ?>
</p>
<!–one post end–>
<?php endwhile; ?>
<!– do not delete–>
<?php else : ?>
Not Found
<?php include (TEMPLATEPATH . ‘/searchform.php’); ?>
<!–do not delete–>
<?php endif; ?>
<!–archive.php end–>
<!– navigation–>
<div class=»navigation»>
<span class=»alignleft»><?php next_posts_link(‘« Previous Entries’) ?></span>
<span class=»alignright»><?php previous_posts_link(‘Next Entries »’) ?></span>
</div>
<!–include footer–>
<?php get_footer(); ?>Desde ya muchas gracias!!
Mariano -
Te equivocaste de foro. Debiste haber leído esto, que está en la entrada al mismo:
https://es.forums.wordpress.com/topic.php?id=9&replies=1 -
- El debate ‘Los Posts en las Categorias se ven diferentes al Home’ está cerrado y no admite más respuestas.