外掛說明
WebToulouse Related Content Inserter lets you display a clean, customizable “related content” block inline inside any post, page, or custom post type. Lightweight, no tracking, no premium upsell.
Key features
- Manual selection via sidebar metabox with AJAX search and drag-and-drop ordering.
- Automatic suggestions based on shared taxonomies (categories, tags, custom taxonomies).
- Six auto-insertion modes: disabled, before, after, middle, after the Nth paragraph, or every N paragraphs with a maximum cap.
- Shortcode
[wtrc_related_content]with full attribute support. - Native Gutenberg block with server-side rendering.
- Configurable accent bar color (5px left border) and background color via plain text fields (hex or rgb/rgba).
- Pale grey background, block layout with no
<ul>/<li>structure. - Works with any public post type (configurable in settings).
- Recursion-safe (won’t loop on the
the_contentfilter). - No tracking, no external requests, no premium upsell.
Shortcode attributes
[wtrc_related_content ids="12,34,56" limit="3" columns="2" title="Read also" accent_color="#e63946" bg_color="#f5f5f5" show_thumbnail="1" show_excerpt="1"]
PHP API
echo wtrc_render( [ 'limit' => 4, 'accent_color' => '#e63946' ] );
Support
Author: Philippe Cano — https://webtoulouse.fr/
適用於區塊編輯器
這個外掛提供 1 個可供 Gutenberg/區塊編輯器使用的區塊。
- Contenu lié
安裝方式
- Upload the
webtoulouse-related-content-inserterfolder to/wp-content/plugins/, or install via the Plugins screen in WordPress. - Activate the plugin through the Plugins menu.
- Go to Settings Related Content to configure post types, auto-insertion mode, colors, and display options.
- Edit any post / page / CPT and use the Related Content metabox in the sidebar to select items manually, or let automatic suggestions run.
常見問題集
-
Does it work with custom post types?
-
Yes. Enable the desired post types in Settings Related Content.
-
How does the automatic suggestion algorithm work?
-
It looks for posts of the same type that share at least one term (category, tag, or custom taxonomy term) with the current post. Falls back to most recent posts of the same type if none are found.
-
Can I insert the block in the middle of an article?
-
Yes. Choose after the Nth paragraph to inject once, or every N paragraphs to inject multiple times (configurable maximum).
-
Is the plugin GDPR-compliant?
-
The plugin does not collect, send, or store any personal data. It makes no external HTTP requests.
使用者評論
這個外掛目前沒有任何使用者評論。
參與者及開發者
變更記錄
1.0.0
- Initial release.