This plug-in is a typing aid for image credits on posts and pages.
It adds a button to your editor called ‘by’ in the Visual Editor and ‘credit’ in the Text Editor tab. Pressing the button conjures up a form that will let you fill out fields about the image, such as the name of the creator, and the URL of the license under which you are using the image.
Press submit, and the plug-in will paste a nicely formatted string at the current cursor position of your editor.
I am currently a happy user of my own plugin, and foresee no major changes in the future. Please let me know if there is any feature you could use.
If you are using WordPress 5.0 or higher with the Gutenberg editor, use the Classic Editor block.
This plugin helps you helps you format personal data (such as the name and online address of a photographer), but it does not store such data itself.
- WordPress 3.9 or newer.
Note that earlier versions of this plug-in function perfectly fine with earlier versions of WordPress. Version 1.2.1 of the plug-in supports WordPress 3.3 through 3.8.x, but does not support the visual editor.
- Photo by John Smith.
- Photo of a fire truck by John Smith, some rights reserved.
My goal in writing this plugin was mainly to help me avoid typos.
A setting will enable wrapping the credit line in HTML mark-up, so that you can style it more easily. This setting is off by default.
There are plugins that add a credit field to media, which you can then display in your post using a shortcode. Media Credit by Peter Putzer is an example:
Plugins also exist that let you read IPTC meta data from image files and display it in your content using meta tags, for instance using JSM’s Adobe XMP / IPTC for WordPress:
- Upload the folder containing the plugin to the
- De plugin activeren via het ‘Plugin’ menu in WordPress.
Why doesn’t it work?
There could be a couple of reasons:
- If you are using the Gutenberg editor of WordPress 5 or higher, make sure you use the Classic Editor block.
If the reason it doesn’t work isn’t in this list, please file a support request on the plugin’s homepage. Please describe what you have tried (step for step) and where it goes wrong.
Bijdragers & ontwikkelaars
“Credit Line Generator” is open source software. De volgende personen hebben bijgedragen aan deze plugin.Bijdragers
Vertaal “Credit Line Generator” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
- Changed: documentation, clarified usage with the Gutenberg editor.
- Added: interface translations.
- Added: support for narrow screens.
- Changed: minor tweaks to text and looks.
- Changed: in the Text editor, the credit line now gets inserted at the cursor.
- Fixed: in the Visual editor, adding a credit line no longer resets the cursor position.
- I also performed some minor code clean-up that should make it easier to add features.
- Added visual editor support.
- Changed the minimal required version of WordPress to 3.9.
- Fixed a bug that would display an error message if a user had yet to save the settings.
- Added: information about compatibility with the new editor introduced for WordPress 5, Gutenberg.
- Added: information about GDPR compliance.
- Changed: refactored the code to make future expansion easier.
- Changed: the CSS produced by creditline_head() has been moved to its own file.
- Deprecated: creditline_head(). If for some reason you rely on this function, note that it no longer does anything, and that it will be removed in a future release.
- Added: optional HTML mark-up for the credit line.
- Added: a settings screen in which the HTML mark-up can be enabled.
- Fixed: a bug that returned ‘Photo by .’ when all fields were empty. Now nothing will be returned in that case.
- Tested: up to version 4.9.1.
- Added: an icon.
- Changed: expanded the Readme with alternative plugins.
- Fixed: display the pop-up over WordPress’ media buttons bar (it’s like an arms race).
- Changed: moved all of the changelog to the readme.txt.
- Changed: moved todos out of the plugin.
- Changed: minor textual changes in plugin and readme.txt.
- Changed: some code clean-ups (I hope).
- Fixed typos in the readme.
- Fixed: media buttons rendered over the pop-up.
- Changed: removed nonsense text to keep pop-up smaller.
- First public version. Cleaned things up a bit, added a readme.txt.
- WordPress renamed a couple of action hooks we were using, and uses a Tags object now for the Quicktags.
Added a couple of WordPress styles to give it a more unified look.
- Initial version.