• I have been creating a new design for my site and it is almost finished, but when I put the WP code into it I found my date was not displaying completely.
    The code I am using to include the date is:
    <div id=”date”>
    <?php the_date() ?>
    </div>
    The css style for “date ” is:
    #date{text-align: justify;font-size: 12px;color: #eee;background-color: #660000;padding: 5px;margin-left: 225px;margin-right: -10px;margin-top: -10px;}
    My date code in WP is set as:
    D jS M ‘y
    if you take a look at http://www.theworldweblog.co.uk/layout.php you will see that I dont get the month at all with some posts and get a random letter in others. In my current design however (http://www.theworldweblog.co.uk/index.php), I have no problems of this sort.
    This leads me to believe that my styling code for the date section is stopping the date from displaying properly, but I can’t figure out what.
    Any light you could shed on this subject would be much appriciated.
    Thanks,
    David

Viewing 7 replies - 1 through 7 (of 7 total)
  • try the command : the_time(), instead of the_date(). and….
    type the format in command , such as — the_time(“Y/n/j/G:i”), instead of set in WP’s option.

    Thread Starter Anonymous

    Nope, I’ve tried replacing the date tag with time as you suggested, but it doesn’t make any difference… It is really confusing why it shows on my current layout but not my new one.

    Try changing your settings to
    D jS F y
    See if you can even get the month to show that way.
    TG

    Thread Starter Anonymous

    Nope, nothing. I still can’t get the month to show… Any ideas what the problem could be? After the first three posts the date starts appearing with a letter where the month would go, like:
    Wed 11th r 04

    ack.. you seem to have removed the wp stats line. what version of wp are you using?

    Thread Starter Anonymous

    Im using version 1.0.2

    Thread Starter Anonymous

    I’ll try installing 1.2 and see if i get any luck with that.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Not showing the full date’ is closed to new replies.