How Do I Add an Attribution to an Image in WordPress?

Adding an attribution to an image in WordPress is easy. All you need to do is add the following code to your post or page:

Image courtesy of example.com.

If you would like to provide a more detailed attribution, you can also add the following code:

example.com and 123RF.