• I am trying to make my static homepage at https://www.aberrantvenus.com look like the front page of this website: https://www.problogger.net with the recent posts column appearing on the left underneath the featured post and another column next to it (not sure what content I will put in it, possibly videos too).

    I also want to put a title and border around each ‘column’ so that they look like columns, if you know what I mean.

    I’ve tried using the <?php query_posts… function but a) I can’t figure out where the code should go and b) when I have played around with it I can’t get the entries to appear as a title and mini-excerpt with no image?

    Please help, I have been stuck on this code for 4 hours or so now!

Viewing 1 replies (of 1 total)
  • try something like this?

    <?php query_posts('showposts=5'); ?>
    <ul>
    <?php while (have_posts()) : the_post(); ?>
    <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a><br>
    <?php the_excerpt(); ?>
    </li>
    <?php endwhile;?>
    </ul>

    that will create a loop to display the links and titles of the last 5 posts. You can put this in a div or whatever you want to make it show where and how you want on your page.

    here is a descrtiption of what the excerpt tag will do

    Displays the excerpt of the current post with […] at the end, which is not a “read more” link. If you do not provide an explicit excerpt to a post (in the post editor’s optional excerpt field), it will display an automatic excerpt which refers to the first 55 words of the post’s content. Also in the latter case, HTML tags and graphics are stripped from the excerpt’s content. This tag must be within The Loop.

Viewing 1 replies (of 1 total)
  • The topic ‘Making my front page look like this…’ is closed to new replies.