Support » Themes and Templates » Call latest post by Individual Author

  • Page:

    I am trying to set the center section so that I so the latest post by individual authors. This is my current code:

    <div class="section">
    <h2>Magazine Section #1</h2>
    <?php $recent = new WP_Query("cat=1&showposts=1"); while($recent->have_posts()) : $recent->the_post();?>
    <b><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></b>
    <?php the_content_limit(130, ""); ?>
    <div class="hppostmeta">
    <p><?php the_time('F j, Y'); ?> | <a href="<?php the_permalink() ?>" rel="bookmark">Read the story &raquo;</a></p>
    <?php endwhile; ?>

    Any thoughts? TIA

  • The topic ‘Call latest post by Individual Author’ is closed to new replies.