
內容簡介
此外掛可以讓你快速增加讀者的參與度,透過小工具或簡碼在側邊欄或文章內容後加入相關文章。有相同詞彙數量的文章會顯示在最前面!此外掛可以在多個種類和文章類型中找到相關文章。可以使用自己的範本在 (子) 主題中更改外觀和感覺,也可以在搜尋相關文章時包含或排除詞彙。此外掛特點包括:小巧、速度快、在文章內容後自動顯示相關文章、包含或排除詞彙和文章、搜尋單一或多個分類和文章類型中的相關文章、可使用自己的 HTML 範本來顯示相關文章等。此外掛特色包括:使用相關文章查詢的持久性快取 (必須選擇)、使用 WordPress REST API 取得相關文章 (必須選)、在完整頁面載入後加載相關文章 (使用 Ajax) (必須選)、在主題範本中使用外掛的功能自己顯示相關文章,使用過濾器更改外掛的預設行為等。在簡碼中的預設用法是:[related_posts_by_taxonomy]。簡碼的屬性包括:文章 ID、分類、文章類型、每頁文章數、排序、排序方式、簡碼之前和之後、標題、顯示日期、標題之前和之後、包括的詞彙、包括的父元素、包括的子元素、排除的詞彙、排除的文章、格式、圖庫格式、圖像大小、欄、說明文字、連結說明文字、限制文章、限制月份、元數鍵、元數值。此外掛的文件可以參考 plugin documentation 頁面。此外掛遵循 WordPress 的編碼標準和最佳實踐,可高度自定義。您可以在 GitHub 上關注此外掛,搜尋程式碼參考。請參考 FAQ 以自動在文章內容後顯示相關文章。
外掛標籤
開發者團隊
📦 歷史版本下載
原文外掛簡介
Quickly increase your readers’ engagement by adding related posts in the sidebar or after post content with a widget or shortcode.
Posts with the most terms in common will display at the top!
This plugin is capable of finding related posts in multiple taxonomies and post types. Include or exclude terms from the search for related posts. Change the look and feel by using your own templates in a (child) theme.
plugin documentation
Plugin features:
Widget and Shortcode.
Display related posts as post thumbnails, links, excerpts or full posts.
Small Footprint. Doesn’t slow down your site!
Automatic display of related posts after the post content.
Exclude or include terms and posts.
Search for related posts in single or multiple taxonomies and post types.
Limit the search for related posts by date, number or post meta.
Use your own HTML templates for display of the related posts.
Extensive plugin documentation.
Follows WordPress coding standards and plugin best practices.
Highly Adjustable!
For the following features you need to be somewhat familiar with WordPress hooks. The plugin documentation has many examples to help you along.
Extended features:
Use a persistent cache for the related posts query. (opt-in feature)
Use the WordPress REST API to get related posts. (opt-in feature)
Load related posts after the whole page has loaded (with Ajax). (opt-in feature)
Use plugin functions in your theme templates to display related posts yourself.
Use Filters to change the default behavior of the plugin.
Follow this plugin on GitHub.
Search the code reference
See the FAQ to have related posts automatically display after the post content without using the shortcode or widget.
Default usage for the shortcode is:
[related_posts_by_tax]
Attributes for the shortcode are:
post_id
taxonomies
post_types
posts_per_page
order
orderby
before_shortcode
after_shortcode
title
show_date
before_title
after_title
include_terms
include_parents
include_children
exclude_terms
exclude_posts
format
gallery_format
image_size
columns
caption
link_caption
limit_posts
limit_month
meta_key
meta_value
meta_compare
meta_type
public_only
include_self
post_class
Example to show 10 related posts instead of the default 5.
[related_posts_by_tax posts_per_page="10"]
See the documentation for more information about these attributes.
Translations
Dutch
French (by Annie Stasse)
Spanish (by Ludobooks – Cuentos personalizados)
Catalan (by Ludobooks – Cuentos personalizados)
Polish (by koda0601)
