WordPress.org

Ready to get started?Download WordPress

Forums

Last update in category. (4 posts)

  1. Falc
    Member
    Posted 6 years ago #

    Hi,
    At first, sorry for my English.

    I'm using WordpRess 2.2.3 and MistyLook theme. I would like to make some changes in categories menu. I wish that under name of category in that menu shows date of last update. For example:

    Categories

      Books
      (Last update: 18-04-2007)
      Games
      (Last update: 06-10-2007)
      Sport
      (Last update: 21-10-2007)

    How to do it?

    Thank you :-)

  2. MichaelH
    Member
    Posted 6 years ago #

    The template tag, wp_list_categories(), offers the show_last_updated parameter.

  3. Falc
    Member
    Posted 6 years ago #

    Yeah, right. But where to put it? I've got something like that in my page-archives.php file:

    <p><?php edit_post_link(); ?></p>
    				<div class="entry">
    				<h2>Categories</h2>
    					<ul>
    						<?php list_cats(0, '', 'name', 'ASC', true, 0, 1);    ?>
    					</ul>
  4. MichaelH
    Member
    Posted 6 years ago #

    Use the wp_list_categories in place of the list_cats.

Topic Closed

This topic has been closed to new replies.

About this Topic