• I need something like this to exist, and I’m sure it does.

    <?php if (have_posts()) : ?>
    <?php while (category(“3”)); ?>

    The post details.

    <?php endwhile; ?>
    <?php else : ?>
    <p>No post found.</p>
    <?php endif; ?>

    ie. display the most recent post in category 3. How would I do this?

The topic ‘Displaying most recent post’ is closed to new replies.