|
Hello everyone,
I'm currently working on displaying an excerpt of my Wordpress posts on my website. I've got everything working perfectly but I'd like to display the date of each post with a cool calendar background.
Currently I'm using the <?php the_date(); ?> tag which pulls the date of each post from the database in the following format:
month day, year
What I'd like to do is add the day and month in the following format:
<div class="calendar sprite-main">
day
<em>month</em>
</div>
Is it possible to achieve this? I have noticed that I can apply attributes to the tag but haven't found an option to get the date and month separately.
Thanks!
Jack
|