• I would like to include excerpts with my recent entry list on my main page. I have found and configured the fallowing code, but I get a brake between the recent entry and the excerpt. Anybody have a better code or am I stuck with this one?

    <?php query_posts('category_name=Reviews&showposts=5');
    while (have_posts()) : the_post();
      // do whatever you want
    ?>
    <b><a href="<?php the_permalink() ?>" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a><?php the_excerpt(); ?><br />
    <?php
    endwhile;
    ?>

    Thanks!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter ajennell

    (@ajennell)

    bump

    Thread Starter ajennell

    (@ajennell)

    Bump

    instead of useless bumping, why dont you give us more info. a link to the site would be a good place to start.

    Thread Starter ajennell

    (@ajennell)

    There really isn’t more info to give. The code is very straightforward and I would assume that anyone with knowledge of CSS and wordpress codes would be able to look at it and see my problem. If they don’t, they wouldn’t be able to help me.

    I do not have a working example at the moment but https://thegildedpen.com/index.php is up when I am testing the layout and other codes and this can be seen active there.

    I am trying to do something similar to this. Instead of displaying posts from a specific category I want to display the 5 most recent entries on my blog (from all categories). I am looking at the Loop information on the Codex pages but I don’t seem to be grasping how to do this.

    I found a temporary fix. I am now having it to display all categories except the un-categorized category. I try my best to keep my posts out of that category so it shouldn’t be a problem.

    Well, I thought that would fix it. But now it’s displaying the oldest posts.

    I think what happened was when I imported my database into my local server, the dates got reversed. That’s the only logical conclusion. I don’t know why it did that because the newest posts that I have made are still on the front page.

    But anyways. I uploaded the theme to my production server and it worked fine.

    Thread Starter ajennell

    (@ajennell)

    Well, as long as you find something that works for you! I’m still using the same code I have, but I’m coming up with other non-related problems.

    Good luck to you!

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Recent entries with excerpts – Code help’ is closed to new replies.