https://github.com/gregrickaby/wordpress-display-exif
📸 Display image EXIF data via shortcode.
https://github.com/gregrickaby/wordpress-display-exif
exif shortcode wordpress
Last synced: about 1 month ago
JSON representation
📸 Display image EXIF data via shortcode.
- Host: GitHub
- URL: https://github.com/gregrickaby/wordpress-display-exif
- Owner: gregrickaby
- Created: 2020-06-24T01:30:04.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-23T20:49:09.000Z (over 5 years ago)
- Last Synced: 2025-05-09T01:56:59.970Z (about 1 year ago)
- Topics: exif, shortcode, wordpress
- Language: PHP
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# WordPress Display EXIF
Display image EXIF data via shortcode.

*Note: WordPress doesn't save location or lens data, but you can pass that in as an argument.*
## Arguments
- **id** - (string/int) Required. The image ID. Can be found in the Media Library.
- **location** - (string) Optional. Any location. HTML allowed.
- **lens** - (string) Optional. Any lens. HTML allowed.
## Usage
Add the [shortcode function](https://github.com/gregrickaby/wordpress-display-exif/blob/master/exif.php) to `functions.php`, and then use `[exif id="12345"]` on any post or page to display EXIF data.
```php
[exif id="12345" location="Anytown, USA" lens="Panasonic G Vario 45-150mm"]
```
## Find Image ID
Open any image in the Media Library, and the ID is in the address bar:
