Company

About Us

A web development and consulting agency based in Kentucky, proudly serving clients all over the US.

Selected Projects

A few exciting projects we've had the pleasure of creating.

Our Blog

A combination of SEO, business and WordPress tips to help you with your business.

Services

Website Design

Landing pages, websites, and e-commerce stores built with your brand in mind.

Website Maintenance & Care

Worry and attention-free website management and hosting.

Consulting & Guidance

Your personal web consultants. From marketing translations to streamlining your online workflow.

Contact

Contact Us

We'd love to hear from you and can't wait to kickstart a project.

9

White Label Web Design

We manage and develop, you take all the credit. Find out more.

How to Set a Dynamic Date in WordPress

by | Feb 1, 2016 | Web Tips

How to set a dynamic date in WordPress

Ahhh, so you have a WordPress/PHP site, but the footer is displaying your three-year-old copyright date. We’ve done it too. We see the year every time we visit and think, I’ll change that this weekend.

Well, let’s just make sure that happens automatically from now on. Just a little code addition will help that year change for you and set a dynamic date… another little item to mark off the list.

Normally, the footer.php contains the copyright date. So let’s head that direction. Once you’re there, locate the current or outdated year.

Switch that out with the following:

<p>&copy; <?php echo date('Y') ?></p>

Format and style the text as needed. Save and refresh. And that’s how to set a dynamic date in WordPress!

If you’re using a theme or template for a CMS like Joomla! or WordPress and they have a section for footer text, check with the developer to see if that section will accept HTML/PHP. If so, try it out. Most modern themes will.

As always, backup and edit safely.

Written By Brandon Crabtree

Brandon is the owner of CRFTD and has a background in System Administration. His expertise spans from hardware and server applications to DNS and code debugging. If he’s not working on a project, he's likely on a run or listening to some vinyl.