sebap04
Dseda
Verificación en dos pasos activada
Buenas. En una página que tengo para pruebas (en WP) estoy tratando de poner un resumen de las entradas cada una con su imagen miniatura. La guía que sigo es la siguiente:
Quick Tip : Make A Post Automatic Excerpt With Image Thumbnail on WordPress 2.9+
Lo hice con 2 themes sin problemas pero en este me está dando algunos problemas. Pueden ver como queda desde acá:
Gatos Perros
Como se puede ver, la primer entrada se ve bien pero todas las demás salen corridas. Alguien sabe por qué será?
Por las dudas dejo el código del index:
Gracias de antemano.
Saludos
Quick Tip : Make A Post Automatic Excerpt With Image Thumbnail on WordPress 2.9+
Lo hice con 2 themes sin problemas pero en este me está dando algunos problemas. Pueden ver como queda desde acá:
Gatos Perros
Como se puede ver, la primer entrada se ve bien pero todas las demás salen corridas. Alguien sabe por qué será?
Por las dudas dejo el código del index:
Insertar CODE, HTML o PHP:
<?php
global $options;
foreach ($options as $value) {
if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
}
?>
<?php get_header(); ?>
<div id="mainbg"><div id="main">
<?php get_sidebar(1); ?>
<?php if($ws_2sidebar == "false") { ?>
<div id="content">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="entry-date">
<div class="entry-month">
<?php the_time('M'); ?>
</div>
<div class="entry-day">
<?php the_time('d'); ?>
</div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a></h2>
<div class="entry-meta">By <?php the_author(); ?> Posted in <span class="catposted">
<?php the_category(', ') ?>
</span> <strong>|</strong> <span class="comments">
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</span> </div>
<div class="entry-content">
<?php edit_post_link('<img src="'. get_bloginfo('template_url') .'/images/pencil.png" alt="Edit Link" /> Edit this entry.', '<p>', '</p>'); ?>
<?php the_post_thumbnail(array(150,150), array ('class' => 'alignleft')); ?>
<?php the_excerpt(); ?></div>
<?php wp_link_pages();?>
</div>
<!-- end the post div-->
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link('« Previous Entries') ?>
</div>
<div class="alignright">
<?php previous_posts_link('Next Entries »') ?>
</div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>
<div class="navigation">
<?php posts_nav_link();?>
</div>
<?php endif; ?>
</div>
<!-- end content div-->
<?php }else{ ?>
<div id="content2">
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
<div class="entry-date">
<div class="entry-month">
<?php the_time('M'); ?>
</div>
<div class="entry-day">
<?php the_time('d'); ?>
</div>
</div>
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
<?php the_title(); ?>
</a></h2>
<div class="entry-meta">By <?php the_author(); ?> Posted in <span class="catposted">
<?php the_category(', ') ?>
</span> <strong>|</strong> <span class="comments">
<?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>
</span> </div>
<div class="entry-content">
<?php edit_post_link('<img src="'. get_bloginfo('template_url') .'/images/pencil.png" alt="Edit Link" /> Edit this entry.', '<p>', '</p>'); ?>
</div>
<?php the_post_thumbnail(array(150,150), array ('class' => 'alignleft')); ?>
<?php the_excerpt(); ?><?php wp_link_pages();?>
</div>
<!-- end the post div-->
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft">
<?php next_posts_link('« Previous Entries') ?>
</div>
<div class="alignright">
<?php previous_posts_link('Next Entries »') ?>
</div>
</div>
<?php else : ?>
<h2 class="center">Not Found</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php get_search_form(); ?>
<div class="navigation">
<?php posts_nav_link();?>
</div>
<?php endif; ?>
</div>
<!-- end content div-->
<?php get_sidebar('2'); ?>
<?php }?>
</div>
<!-- end the main div-->
</div>
<!-- end the mainbg div-->
<?php get_footer(); ?>
Gracias de antemano.
Saludos
Última edición: