Support » Fixing WordPress » PHP Date not showing up

  • Hi there everyone,
    Hoping there is someone out there who can help me. I have just installed WordPress, and very nearly have my site ( looking the way I want it to, but the date isn’t showing up properly. I have checked my code on and my date should read: June 12th, 2006, but it is only showing up as: 12th, 2006. My code is as follows:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    <html xmlns="" id="sixapart-standard">
    <link href="style.css" rel="stylesheet" type="text/css" />
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

    <title><?php bloginfo('name'); ?> <?php if ( is_single() ) { ?> » Blog Archive <?php } ?> <?php wp_title(); ?></title>

    <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats -->

    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

    <div id="page-container">
    <table width="700" cellpadding="0" cellspacing="0" background="images/containerbg.gif">
    <td height="270" colspan="2" background="images/header2.gif" id="headerimg"> </td>
    <td width="435" align="left" valign="top">
    <div id="content">
    <div class="padding">
    <div id="countdown-cont">
    <h4><?php include 'countdown.php'; ?></h4>

    <?php if (have_posts()) : ?>

    <?php while (have_posts()) : the_post(); ?>

    <div class="post" id="post-<?php the_ID(); ?>">
    <h1><!--" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">--><?php the_title(); ?><!----></h1>
    <h2><?php the_time('F jS, Y') ?> by <?php the_author() ?> </h2>

    <div id="post">
    <?php the_content('Read the rest of this entry »'); ?>

    <p id="posted">Posted in <?php the_category(', ') ?> | <?php edit_post_link('Edit','','|'); ?> <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?>

    <?php comments_template(); ?>
    <?php endwhile; ?>

    <p align="center"><?php next_posts_link('« Previous Entries') ?> <?php previous_posts_link('Next Entries »') ?>

    <?php else : ?>
    <h2 align="center">Not Found</h2>
    <p align="center">Sorry, but you are looking for something that isn't here.
    <?php endif; ?>

    <td width="263" align="right" valign="top">
    <?php get_sidebar(); ?>
    <td colspan="2">
    <?php get_footer(); ?>

    Any help would be appreciated.

  • The topic ‘PHP Date not showing up’ is closed to new replies.