Like the blog? Get the book »

Posts tagged: date

Archive page 1 of 1
Multiple the_date() Functions Return Empty Date

Multiple the_date() Functions Return Empty Date

Inside the loop, if you use the function the_date() to display the date the post was published, you may run into trouble. Specifically, if there are two posts published on the same day, the second one will return nothing for a date.

How to Display a Copyright as a Range of Dates

How to Display a Copyright as a Range of Dates

Technically, your work is protected under copyright “the moment it is created and fixed in a tangible form that it is perceptible either directly or with the aid of a machine or device.” 1 Registration of your copyrighted work is not required2, but you should include a copyright notice on all published works3. So it’s a good idea to display a copyright notice on all of your blog posts and pages.

Dynamic Copyright in your WordPress Footer

Dynamic Copyright in your WordPress Footer

Many footers on websites contain text like “© 2009 Your Website”. A good measure, surely. We can use some classic PHP and a built-in WordPress function to make this bit of text dynamic so that it will never need to be tampered with manually again. Here is the code to add to your theme template file (most likely footer.php):

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace