Connect with us

Wordpress Tips

WordPress Code: How to Add Copyright Attribution To Images Based on Context

It is no secret that if you are using someone else’s photo on your site, you should include copyright attribution when required. In fact, it is a good practice to do even when you are not. For your own photos, you will also want to include a copyright notice to make sure others respects your rights. Plugins like this can help:

🛠️ Divi Builder drag & drop page builder for WP

This code snippet uses post author and upload year when images are uploaded through a post. If you upload an image to your Media Library, site name and upload your are used. Just add this code to your functions.php file to get started.

Continue Reading
You may want to check out:
*some of our articles and lists include affiliate links to fund our operations (e.g. Amazon, Elegant Themes, Envato). Please read our disclaimer on how we fund Exxponent.
You may also like...
Click to comment

Leave a Reply

Your email address will not be published. Required fields are marked *

More in Wordpress Tips

To Top