• Hi, can anyone tell me how i could put the date last modified (or that of the most recent post) for a particular category? I have links to various main categories from my home page and would like people to see at a glance when the sub-category pages have been updated or not.

    Any and all help much appreciated.

    _Linus

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter linus587

    (@linus587)

    Just to clarify, here’s what I’d like to see outputted:

    Category 1
    (7 May)

    Category 2
    (21 May)

    Category 3
    (18 May)

    TIA…

    Thread Starter linus587

    (@linus587)

    Well, I figured it out through my own trial and error. Woot– yeah, thanks team — ??

    <div id="updated"><?php $temp_query = $wp_query; ?>
    <?php query_posts('cat=6&showposts=1'); ?>
    <?php while (have_posts()) : the_post(); ?>
    <small><?php the_time('d-m-y'); ?></small>
    <?php endwhile; ?>
    <?php $wp_query = $temp_query; ?></div>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category-specific last-modified date’ is closed to new replies.