這個外掛並未在最新的 3 個 WordPress 主要版本上進行測試。開發者可能不再對這個外掛進行維護或提供技術支援,並可能會與更新版本的 WordPress 產生使用上的相容性問題。

WP Academic Publications

描述

Let’s you add academic publications, such as those listed in journals or conferences, to your WordPress admin page. These can then be displayed on your site using a shortcode or php function call.

安裝

  1. Upload wpacademicpubs to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Use [academicpubs] as a shortcode or wpap_get_publications() or wpap_get_publications_formated() in a template.

常見問題

How do I use the shortcode?

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]
What if I want the publications somewhere else?

You can use one of the two php functions anywhere in a template.

/* Returns a list of publications. Each publication contains key,val pairs.
 *
 * $options: array('option' => 'value')
 *
 * Returns: [['id':1, 'title':'Paper Name', 'pdf_url':'http://a.com'],
 *           [another pub...]]
 *          fields are: id, title, authors, conference, pdf_url, bibtex_url,
 *                      slides_ppt, website_url
 */
wpap_display_publications($options);

/* Returns html around each publication.
 */
wpap_display_publications_formatted($options);

For example:

<?php
$opts = array('category'   => 'selected,science',
              'reverse'    => 'true',
              'show_links' => 'false');
$pubs = wpap_display_publications($opts);
foreach ($pubs as $pub) {
    echo '<p>' . $pub['title'] . '</p>';
}
?>

or

<?php
$opts = array('numbered'   => 'true',
              'limit'      => 10);
echo wpap_display_publications_formatted($opts);
?>
What does the output look like?
What is a starter for some CSS styling?

.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;
}

Support

Please go to https://github.com/bradjc/wordpress-academic-pubs if you have
any issues.

評價

2016年9月3日
I like this plugin, but I would love it TEN times more (and actually recommend it) if we could add an image (like a book cover) to publication entries, PLEASE add the capability of adding an image and more than one website source, for instance I have a publication that is listed on multiple websites but I can only add one right now.
閱讀全部2個評價

貢獻者及開發者

“WP Academic Publications” 是一個開源的軟體。以下的人對這個外掛作出了貢獻。

貢獻者

將 WP Academic Publications 外掛本地化為台灣繁體中文版。

對開發相關資訊感興趣?

任何人均可瀏覽程式碼、查看 SVN 存放庫,或透過 RSS 訂閱開發記錄

修改日誌

1.2: Fixed issue where only 10 publications would display.

1.1: Added slides and website.
Better support for translation.

1.0: Initial release