[WordPress] 外掛分享: Super Recent Posts Widget

WordPress 外掛 Super Recent Posts Widget 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Super Recent Posts Widget」是 2014-01-22 上架。
  • 目前有 50 個安裝啟用數。
  • 上一次更新是 2020-01-21,距離現在已有 1930 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.6 以上版本才可以安裝。
  • 有 2 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

matstars | statenweb |

外掛標籤

post | widget |

內容簡介

拖曳小工具並填寫適當的欄位。一些注意事項:

若要顯示特定文章類型的文章,將「分類法」欄位留空設為“– 沒有特定的分類法 –“

如果讓「排序方式」和/或「排序依據」欄位設為“– 選擇排序參數 –”和/或「選擇 orderby 參數 – ”–,WordPress會使用預設設定,這裡有更多資訊。

以下過濾器是可用的:

srpw_get_args,用於覆寫小工具的主要查詢參數。
srpw_template,用於覆寫小工具的輸出範本,有關詳細說明請參閱下面。
srpw_WIDGET_NAME_template,用於覆寫按小工具設定的小工具輸出範本。WIDGET_NAME會在小工具窗口中的後端出現,有關詳細說明請參閱下面。
widget_title,這是 WordPress 核心過濾器,有關詳細資訊請參閱此處。
srpw_post_types,用於覆蓋此小工具可用的文章類型。
srpw_taxonomies,用於覆蓋此小工具可用分類法。

srpw_template過濾器的使用方法

在您的範本目錄中添加一個名為「views」的目錄,並添加一個名為「custom-srpw.php」的檔案。該「custom-srpw.php」檔案將是您此範本的自訂範本。

範例:使用自訂範本來源於您的主題,應用程式的 PHP 版本為 5.3 以前

function customize_srpw_template_filter( $template ){
$template_dir = get_template_directory();
return $template_dir . '/views/custom-srpw.php';
}
add_filter( 'srpw_template', 'customize_srpw_template_filter' );
?>

範例:使用自訂範本來源於您的主題,應用程式的 PHP 版本為 5.3 以後,可以使用匿名函數

add_filter( 'srpw_template', function ( $template ){
$template_dir = get_template_directory();
return $template_dir . '/views/custom-srpw.php';
} );
?>

Grunt

此外採用 Grunt 來驗證 JavaScript,SASS 編譯和縮減功能。如果要對此外掛進行編輯/派生,那麼使用 Grunt 可以大有幫助。要使用 Grunt,您必須安裝npm和Grunt。訪問各自的網站以確保已安裝。一旦安裝好,就可以使用這兩個工具。

原文外掛簡介

Drag and drop the widget and fill out the appropriate fields. Some notes:
To display posts from a specific post type leave Taxonomy as “– No Specific Taxonomy –“
If you leave order by and/or order as “– Choose order parameter –” and/or “– Choose orderby parameter –” it will go with WordPress’ default(s), see here for more information.
The following filters are available:

srpw_get_args to override arguments of main query for the widget.
srpw_template to override the output template for the widget, see below for more information.
srpw_WIDGET_NAME_template to override the output template for the widget on a widget by widget basis, the WIDGET_NAME appears on the back-end in the widgets window see below for more information.
widget_title this is a WordPress core filter see here for more information.
srpw_post_types to override the post types available for this widget.
srpw_taxonomies to override the taxonomies available for this widget.

Usage of srpw_template filter
Add a “views” directory and file named “custom-srpw.php” to your template directory. The “custom-srpw.php” file will be your custom template for this example.
Example of using a custom template from within your theme pre-PHP 5.3

Example of using a custom template from within your theme PHP 5.3+ which allows anonymous functions

Grunt
This plugin takes advantage of Grunt for validating JavaScript, SASS compilation and minification. To take advantage of Grunt you have to have both npm and Grunt installed. Visit the respective sites for the applications and make sure they are installed. Once installed, if you want to edit/fork this plugin, it will be helpful to be familiar with these two tools.

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Super Recent Posts Widget」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


temp | 0.1.3 | 0.1.4 | 0.2.0 | 0.2.1 | 0.2.2 | 0.2.3 | 0.2.4 | 0.2.6 | 0.2.7 | 0.3.0 | trunk |

延伸相關外掛(你可能也想知道)

  • PS Auto Sitemap 》PS Auto Sitemap 是一個 WordPress 外掛,自動從您的 WordPress 網站生成網站地圖頁面。, 對於初學者來說,安裝非常容易;對於專家來說,定制也非常容易。您...。
  • Post Type Switcher 》這個外掛在文章編輯介面中新增了一個簡單的文章型別下拉選單,讓你可以重新指派任何文章至新的文章型別。你可以在編輯文章時更換文章的型別。, 支援的型別, ...。
  • Post Duplicator 》這個外掛是用來製作選定文章的完全一模一樣複製。它支援自訂文章類型、自訂分類和自訂欄位。, *注意: 評論不會被複製到新文章。, 這個外掛的目的是為了快速且...。
  • Optimize Database after Deleting Revisions 》這個外掛是一個「一鍵式」WordPress資料庫清理/優化器。, 主要功能, , 刪除文章、頁面和/或自訂文章類型的修訂版本(您可以選擇保留最近的「X」個修訂版本,...。
  • Advanced Excerpt 》這個外掛可以改進 WordPress 原有的摘錄文章功能。, , 保留摘錄中的 HTML 標記,並可自選需要保留的標記, 按字元數或字數截斷摘錄, 只計算「真正的」文字(HT...。
  • Add From Server 》這個外掛提供有限的支援。請不要期望有太多新功能或修正 bug。功能可能隨時被移除。, Add From Server 外掛旨在幫助緩解不好的網站主機所造成的困擾,讓您可...。
  • Page and Post Clone 》這個外掛可以透過一個按鈕來複製貼文或頁面,現在您不必從零開始進行新頁面或貼文的樣式設計。, 這個外掛的主要功能包括:, , 建立一個頁面複本,保留所有內...。
  • WP Page Widget 》這款外掛讓小工具的選擇變得更加容易。啟用此外掛後,我們可以選擇要顯示在特定頁面/文章/自訂文章類型中的小工具。, 請注意,使用此外掛時必須啟用側邊欄主題。。
  • WP Total Hacks 》WP Total Hacks 可以在您的 WordPress 網站上自訂超過 20 個設置。, 此外掛已在 GitHub 上發布。, 一些功能:, 您可以選擇啟用或停用所有項目。, 需要 PHP5!...。
  • Revision Control 》**本外掛不提供支援。仍可使用,但請勿期待得到支援要求的回應或對「這無法運作」進行回應。**, Revision Control 是 WordPress 的一款外掛,可以讓使用者更...。
  • Reveal IDs 》WordPress 2.5版本發佈後,所有管理頁面的ID都被刪除了。這應該是因為普通用戶不需要它們。但對於高級WordPress用戶和開發人員來說,這些ID對某些外掛或模板...。
  • Bulk Delete 》Bulk Delete 是一個 WordPress 外掛,可以根據不同的條件和過濾器批次刪除文章、頁面、附件、使用者和元資料。此外掛支援以下條件和過濾器:, , 刪除文章, , ...。
  • WP Admin UI Customize 》, 儀表板, 顯示選項標籤, 輸出 - 元網站, 管理工具列 (Toolbar), 側邊選單 (Side menu), 元箱的管理, 登入畫面, 其他功能, , 這些自訂化都是可以實現的。, , ...。
  • Themify Portfolio Post 》Themify Portfolio Posts 是一個簡單的外掛,允許您展示乾淨版面的專案資訊。簡約而精美,您可以點擊您的圖庫專案的每張圖片,選擇顯示更多細節,例如專案類...。
  • Essential Content Types 》Essential Content Types 是一個 WordPress 外掛程式,讓您可以在您的網站上以不同的內容/文章類型展示出優秀的內容。這些內容/文章類型可能會被 WordPress ...。

文章
Filter
Apply Filters
Mastodon