內容簡介
此外掛允許您顯示特定作者(或多個作者)的最新文章的未排序連結清單。它可以透過簡碼或主題檔案來呼叫。
若要使用簡碼呼叫,請使用 [latestbyauthor author="username" show="3"]。其中,「username」是作者的登錄名稱(或多個作者的逗號分隔列表),而「3」是要顯示的文章數量。如果您沒有指定作者或顯示數量,它將顯示當前頁面作者的最新 5 篇文章。如果您想要顯示文章摘要,您可以使用以下代碼:[latestbyauthor author="username" show="3" excerpt="true"],它將僅顯示您手動輸入的摘要。
若要從佈景主題範本中呼叫它,您必須將其包裝在此 PHP 函數中:<?php echo do_shortcode('[latestbyauthor author="username" show="3"]'); ?>
外掛標籤
開發者團隊
原文外掛簡介
This plugin allows you to display an unordered list of links to a specific author’s latest posts (or a list of multiple authors). It can be called either with a shortcode or from within a theme file.
To call it with a shortcode, use [latestbyauthor author="username" show="3"] where “username” is the login name of the author (or a comma separated list of multiple authors) and “3” is the number of posts to display. If you don’t specify an author or a display number, it will show the latest 5 posts from the author of the current page. If you want it to display the post excerpt as well, you can use the following code: [latestbyauthor author="username" show="3" excerpt="true"] This will only show exerpts that you have entered manually.
To call it from within a theme template, you have to wrap it in this PHP function:
