
內容簡介
這個外掛是「Latest Posts by Author」WordPress 外掛的擴展版本。這個外掛允許您顯示連結清單,並列出特定作者的最新文章(或多個作者的文章列表)。您可以使用短碼或在佈景主題檔案內呼叫它。
要使用短碼呼叫,請使用 [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"]'); ?>
視訊教學請參閱:這裡
外掛標籤
開發者團隊
② 後台搜尋「Latest Posts by Author with content」→ 直接安裝(推薦)
原文外掛簡介
This Plugin is extended version of “Latest Posts by Author” WordPress plugin. 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:
For video tutorial : Click here
