I’m customizing a blog and would like to have the date display in a box so that it is stacked like this:
I cannot seem to figure out how to do this. I tried this:
<?php the_date(‘M’); ?>
<?php the_date(‘d’); ?>
<?php the_date(‘y’); ?>
But it will only display the first one, Month.
Ideally, I’d like to just list them out in one call – <?php the_date(‘M d y’); ?> but somehow place spans between each one, so that I can style them in my CSS.
- The topic ‘Customize the date for stacked Month, Day, Year layout?’ is closed to new replies.