PhotoCommons
WordPress plugin to include photos from Wikimedia Commons on your blog
by Hay Kranen, Timo Tijhof, Daniel Yepez Garces · github.com/danielyepezgarces/photocommons · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/danielyepezgarces/photocommons/archive/refs/heads/master.zipThis version is based on the original PhotoCommons project: https://github.com/hay/photocommons
PhotoCommons
Search, Find and Insert images directly from Wikimedia Commons into your WordPress site.
Note: This is an unofficial plugin developed by independent open-source volunteers and is not affiliated with, endorsed, or sponsored by the Wikimedia Foundation.
Credits
- Hay Kranen
- Timo Tijhof
- Daniel Yepez Garces
Description
Features
- Works both in the WYSIWYG editor and in HTML mode
- Align photo's left, center or right
- Custom size
- Optional caption
- Autosuggest subjects in search
Installation
To install PhotoCommons:
- Upload the
photocommonsfolder to the/wp-content/plugins/directory. - Activate the plugin through the 'Plugins' menu in WordPress.
- In the block editor, add the "PhotoCommons" block from the Media category.
- Click "Select image" to open the Wikimedia Commons picker.
- Search, page through results, and select an image, or enter the file name manually, for example
Example.jpg. - To use the Commons image as the featured image instead of inserting it in the post, enable the checkbox in the block settings and save the post.
You can also use the shortcode directly:
[photocommons file="Example.jpg" width="300" align="right"]
External Services
This plugin relies on external services to search, embed, and download free images. Specifically, it connects to Wikimedia Commons:
- Service: Wikimedia Commons API and FilePath service.
- Purpose: Used to search for public domain and creative commons images, retrieve metadata, and download the selected images to the WordPress media library.
- Data sent: The search terms, requested page index, and the file names of the selected images. No personal or user identifying data is sent, though the user's IP address (for search requests made in the browser) or the web server's IP address (for image downloads) will be exposed to Wikimedia Foundation servers as part of standard web requests.
- Terms of Use: Wikimedia Policy: Terms of Use
- Privacy Policy: Wikimedia Policy: Privacy Policy
- Image Re-use & Licensing: Images retrieved from Wikimedia Commons are subject to the licensing terms chosen by their respective authors (typically Creative Commons or Public Domain). Users of this plugin must adhere to each image's license requirements (such as proper attribution). Learn more in the Wikimedia Commons Re-use Guide.