Support » Themes and Templates » Date not showing on pages:

  • opensecrets


    Hi, I have recently decided to display the date my pages were last updated but the date does not display.

    This is my page.php:

    <?php get_header(); ?>
    <link href="style.css" rel="stylesheet" type="text/css">
    <div class="header">
    <?php the_title(); ?>
    Last Updated: <b><?php the_date(); ?></b><br>
    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="post" id="post-<?php the_ID(); ?>">
    <div class="entrytext">
    <?php the_content('<p class="serif">Read the rest of this page '); ?>

    <?php link_pages('<strong>Pages:</strong> ', '', 'number'); ?>

    <?php endwhile; endif; ?>

    What is wrong?

Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Date not showing on pages:’ is closed to new replies.