I have this line:
<?php the_date(' F j Y')?>
this ends up with June 13 2012 (the current date). I would like to have the year on another line. I have tried this:
<?php the_date(' F j <br /> Y')?>
But it does not work. is there a way to get that break in between.
Thanks
You can separate the components of the date when you call the function. The ‘f’, ‘j’, ‘Y’, et. al essentially get replaced by the date, so omitting the ‘Y’ will allow you to specify it in another function call after the line break.
WordPress actually has a nice guide explaining format characters: http://codex.wordpress.org/Formatting_Date_and_Time
EDIT: Fixed to use
get_the_dateinstead.