A WordPress plugin that displays ORCID (Open Researcher and Contributor ID) identifiers in comments and posts.
This plugin allows WordPress users to add their ORCID to their profile, which can then be displayed on posts and pages. Commenters can also optionally enter their ORCID in the comment form.
- WordPress 5.0 or higher
- PHP 7.4 or higher
- Add ORCID field to user profiles
- Display author ORCID on posts and pages
- Optional ORCID field in comment forms
- Real-time ORCID validation via the ORCID public API
- Auto-approve comments from verified ORCID holders
- Customizable display position (top/bottom of content)
- Display ORCID numbers or author names
- Shortcode support for flexible placement
- Template functions for theme integration
- Internationalization ready
- Upload the
orcidfolder to/wp-content/plugins/ - Activate the plugin through the 'Plugins' menu in WordPress
- Configure settings under Settings → ORCID for WordPress
The plugin adds a Settings page accessible via Settings → ORCID for WordPress. Available options:
- Automatically add ORCID to: Choose to display ORCIDs on Posts, Pages, and/or Comments
- Shortcode support: Enable the
[ORCID]shortcode for manual placement - Position: Display at top or bottom of posts/comments
- Display text: Show ORCID numbers or author names (fetched from ORCID profiles)
- Comment validation: Automatically approve comments with valid ORCIDs
Add your ORCID to your WordPress profile under Users → Your Profile. The ORCID will be validated against the ORCID public API.
Place these functions directly in your theme templates:
// Display author's ORCID
<?php the_orcid_author(); ?>
// Display comment author's ORCID
<?php the_orcid_comment_author(); ?>Use the shortcode in post/page content:
[ORCID]
Filter the HTML output using the orcid_field_html filter:
add_filter( 'orcid_field_html', 'my_custom_orcid_html', 10, 4 );
function my_custom_orcid_html( $html, $orcid, $display_text, $type ) {
return sprintf(
'<span class="custom-orcid"><a href="https://orcid.org/%s">%s</a></span>',
esc_attr( $orcid ),
esc_html( $display_text )
);
}Parameters:
$html- The default HTML output$orcid- The ORCID ID$display_text- The text being displayed (ORCID number or name)$type- Context type: 'comment' or 'author'
- Modernized codebase for WordPress 5.0+ and PHP 7.4+
- Added proper security with nonce verification
- Updated to use ORCID API v3.0 with HTTPS
- Added AJAX-based ORCID validation
- Improved input sanitization and output escaping
- Added PHP type declarations
- Added internationalization support
- Improved accessibility
- Singleton pattern for main plugin class
- WordPress Coding Standards compliance
- Initial public release
This plugin was created at the ORCID Outreach meeting and Codefest held at the University of Illinois at Chicago in May 2014. Andy Mabbett proposed the idea for a WordPress ORCID plugin, and Roy Boverhof (sponsored by Elsevier) implemented it - his first WordPress plugin. The team placed second in the hackathon competition.
A year earlier, Roy had won the ORCID/Dryad Codefest in Oxford (May 2013) for building orcidLIVE! together with Ram Baskaravelu and Mike Taylor. The application visualizes on a world map where ORCIDs are being created and edited in real-time. As a prize, Roy won a trip to CERN to participate in the ODIN "Big Bang" 1st year conference and codesprint.
This plugin is licensed under the GPL v2 or later.
- Concept: Andy Mabbett
- Original author: Roy Boverhof (Elsevier)
- Contributors: Casey A. Ydenberg, Philip John