# Automatically return the current year for your footer copyright text in Bricks

> Have you ever come across a website where the year in the copyright disclaimer has elapsed? Well that won’t happen to you!

Author: Farhan Munim  
Published: 8 December 2023  
Updated: 26 October 2026  
Tags: PHP  
Source: https://farhan.app/blog/automatically-return-the-current-year-for-your-footer-copyright-text-in-bricks/

To automatically return the current year in the format YYYY for your copyright text in Bricks, you can do the following:

-   Create a Footer template (wp-admin > Bricks > Templates) and ensure the condition is set to apply to the entire website (template builder > Settings > Template settings > Conditions > Entire website)
-   Dropped in a code element in the panel and paste in the below snippet (update as per your requirement!) and then execute the code

This will output a clean p tag with your desired text followed by the current year.

```php
<p>
    <?php
    $current_year = date('Y');
    echo '© Farhan Munim ' . $current_year;
    ?>
</p>
```
