WordPress.org

Ready to get started?Download WordPress

Forums

PHP Date not showing up (1 post)

  1. tina
    Member
    Posted 8 years ago #

    Hi there everyone,
    Hoping there is someone out there who can help me. I have just installed WordPress, and very nearly have my site (http://just-dreaming.net/bels) looking the way I want it to, but the date isn't showing up properly. I have checked my code on php.net 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"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
    <head>
    <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'); ?>" />
    </head>

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

    <?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 »'); ?>
    </div>

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

    <?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; ?>

    </div>
    </div>
    </td>
    <td width="263" align="right" valign="top">
    <?php get_sidebar(); ?>
    </td>
    </tr>
    <tr>
    <td colspan="2">
    <?php get_footer(); ?>
    </td>
    </tr>
    </table>
    </div>
    </div>
    </body>
    </html>

    Any help would be appreciated.
    Thankyou

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags