Wrong position of Wordpress posts

Asked

Viewed 27 times

1

Broken images, should be a post below each other, completing 3 posts:

inserir a descrição da imagem aqui

Index.php

<div id="bloco_um">
    <div id="destaque">
        <?php query_posts('showposts=1&category_name=noticias&offset=1');?>
        <?php if (have_posts()): while (have_posts()) : the_post();?>
            <a href="<?php the_Permalink()?>">
                <img src="<?php bloginfo('template_directory'); ?>/imagens/exemplo.jpg" width="340" height="170" border="0"  />
                <span><?php the_title();?></span>
            </a>
        <?php endwhile; else:?>

        <?php endif;?>                
    </div><!-- destaque -->

    <div id="outros_destaques">                
        <div class="outro_destaque">
        <?php query_posts('showposts=3&category_name=noticias&offset=1');?>
        <?php if (have_posts()): while (have_posts()) : the_post();?>
            <a href="<?php the_Permalink()?>">
                <img src="<?php bloginfo('template_directory'); ?>/imagens/exemplo.jpg" width="110" height="70" border="0"  />
                <span><?php the_title();?></span>
            </a>
        <?php endwhile; else:?>

        <?php endif;?>                    
    </div><!-- outro_destaque -->
</div><!-- outros_destaques -->

The idea is to show the main message on the left and, on the right, 3 more (one below the other). How do I solve this?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.