开发者 | bman12 |
---|---|
更新时间 | 2014年3月22日 00:28 |
PHP版本: | 3.5 及以上 |
WordPress版本: | 3.8.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
wpacademicpubs
to the /wp-content/plugins/
directory[academicpubs]
as a shortcode or wpap_get_publications()
or wpap_get_publications_formated()
in a template.Add [academicpubs] in a post. This can have options:
category: comma separated list of publication category slugs to display. numbered: if true, publications will be displayed with an ordered list. limit: total number of publications to display. reverse: display in chronological order (default is reverse chronological). show_links: if true, show links to the paper pdf and bibtex file. page_num: useful for paging, tell wordpress to return the publications that would be on this page. num_per_page: number of pubs to show on a 'page', needed for the paging functionality.
For example:
[academicpubs category=selected,science numbered=true limit=5 reverse=true show_links=false]
You can use one of the two php functions anywhere in a template. ` /* Returns a list of publications. Each publication contains key,val pairs. *
.wpap .publication-title { font-size: 110%; font-weight: bold; } .wpap p { margin: 0; padding: 0; } .wpap ul { list-style: none; margin: 0; } .wpap li { margin-bottom: 15px; }
Please go to https://github.com/bradjc/wordpress-academic-pubs if you have any issues.