Skip to content

Improves Wordpress metadata for common reference management software by using open standards

License

Notifications You must be signed in to change notification settings

errotu/citationMeta

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 

Repository files navigation

citationMeta for Wordpress

This repository contains a function to improve the quality of the metadata shown in the website’s HTML head of a Wordpress blog.

Such improvement is of particular importance for scientific blogs. The additional metadata is displayed as Highwire Press tags (inter alia recommend by Google Scholar) as well as the Dublin Core tags. When used, common reference management software, such as Zotero, can easily import the articles.

How to use

Simply add the code of the citationMeta.php to the bottom of your Wordpress theme’s functions.php (without the leading “<?php”).

Please be aware that the code probably needs to be adjusted concerning the output of authors (look for $citationAuthors and 'display_name'). As Wordpress allows only one author per post, there are many different solutions in the wild on how to add the possibility of having multiple authors per post. The current code should work with the popular CoAuthors Plus plugin.

Also, the code was created for blogs cooperating with the intr2dok service. To provide a PDF, it retrieves the link of the PDF created by intr2dok. If you’re not cooperating with intr2dok, the code shouldn’t throw out any errors, but will – of course – not be able to provide any PDF.

Other custom fields which possibly need to be adjusted are 'subline' (for the subtitle - if you are using one) and 'doi' (if you have a custom field containing a DOI).

About

Improves Wordpress metadata for common reference management software by using open standards

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages