Show date for articles not for pages
-
Hi
I know there are some threads about this, but I haven’t managed to figure it out yet.
I have my template which is only one all-mighty index.php with its associated style sheet.
My articles show the date and author which is all fine, but the pages does too. I don’t want them to show nothing else that the page name and their content.
My list page code looks like this:
<?php wp_list_pages('exclude=10'); ?>
I don’t tell it to show the date but because I tell the articles to have the date and author shown like this, the pages also do it:
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?><h1><?php the_title(); ?></h1>
<?php the_time(‘F jS, Y’) ?> by Johan Niemi`
Is there a simple solution?
- The topic ‘Show date for articles not for pages’ is closed to new replies.