Problemas para mostrar resumo de posts com imagem em tema de WP

  • Autor Autor sebap04
  • Data de início Data de início
Tradução em andamento: em alguns minutos este tópico estará em português. Por enquanto, o conteúdo está no original em espanhol. Ver original
sebap04

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:

Inserir CODE, HTML ou 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('&laquo; Previous Entries') ?>
			</div>
			<div class="alignright">
				<?php previous_posts_link('Next Entries &raquo;') ?>
			</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('&laquo; Previous Entries') ?>
			</div>
			<div class="alignright">
				<?php previous_posts_link('Next Entries &raquo;') ?>
			</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 edição:
Foi útil? Participe da conversa

Com sua conta grátis você pode responder, mandar mensagem privada ao autor e comprar com Saldo retido: o pagamento é liberado quando você recebe o combinado.

Leva 30 segundos · você volta a este tópico ao terminar
Alguien que me de una mano?... :fatigue:
 
Voltar
Topo