• mkelley

    (@mkelley)


    I have a Movable Type weblog and I’m looking at moving to WordPress. My content imported with a couple of little issues, but they’re taken care of. My main concern, is that I want to format my date headers like I can under Movable Type. I’ve looked at the_date tag and no amount of formatting will let me render the date under WordPress.
    The blocks are rendered as :
    Day of Week

    Month

    <h3>Date</h3>
    Year
    I’ve been trying to render this with the_date tag, but it keeps throwing up a PHP error. My test site is here

Viewing 4 replies - 1 through 4 (of 4 total)
  • urbanwhore

    (@urbanwhore)

    Check out the Wiki Date/Time tags page.

    willm

    (@willm)

    Yes, what you would need to do is make seperate calls to the_date function for each line and specify in the parameters whether you wanted it to be the month, the weekday, or whatever:
    <?php the_date ('l');?><br/>
    <?php the_date ('F');?><br/>
    <h3><?php the_date ('j');?></h3>
    <?php the_date ('Y');?>

    Thread Starter mkelley

    (@mkelley)

    WillM, that’s initially how I set everything up. But It would only properly display the top line. UW, I’ll check those out.

    Thread Starter mkelley

    (@mkelley)

    If you look at my wp site now, I’m using
    ‘<?php the_date(‘lFdY’, ‘<div class=”datebox”>’, ‘</div>’, display); ?>’
    And as you can see it’s in the box I want, but I still can’t format the individual areas (day of the week, month, day, year). If this is a limitation of WordPress, then I’ll probably look at another weblog cms.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘the_date formatting’ is closed to new replies.