Ready to get started?Download WordPress


Position "posts" inline on startpage? Help (1 post)

  1. csk87
    Posted 1 year ago #

    Hi im trying to display my latest 3 post next to eachother on my home.php.
    (i just want to show the posts as "read more" shorter versions on the mainpage)

    my problem is that with the "query_posts" im using the posts dont show up inline, but beneath eachother.

    any ide how to solve it ?

    <div class="front-news">
    <?php query_posts('showposts=3'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><br />
    <?php the_excerpt(); ?>
    <?php endwhile;?>

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.