[WordPress] 外掛分享: Kayce Custom Archive Sections

首頁外掛目錄 › Kayce Custom Archive Sections
WordPress 外掛 Kayce Custom Archive Sections 的封面圖片
全新外掛
安裝啟用
尚無評分
34 天前
最後更新
問題解決
WordPress 6.0+ PHP 7.4+ v2.0.0 上架:2026-05-18

內容簡介

Kayce Custom Archive Sections 讓您在 WordPress 的歸檔頁面上輕鬆創建和管理可重用的內容區域,無需編輯佈景主題檔案。每個區域都是常規的 WordPress 文章,可以使用區塊編輯器(Gutenberg)或 Elementor 設計,並自動顯示在指定位置。

【主要功能】
• 支援多種歸檔位置,如分類、標籤和搜尋結果頁面
• 可在文章循環前或後顯示內容區域
• 設定可見性,依據登入狀態或使用者角色顯示
• 拖放排序功能,輕鬆調整區域順序
• 短碼嵌入,隨時在內容中使用區域

外掛標籤

開發者團隊

⬇ 下載最新版 (v2.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Kayce Custom Archive Sections」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Kayce Custom Archive Sections lets you create and manage reusable content areas that appear automatically before or after the post loop on your WordPress archive pages — no theme file editing required.
Each section is a regular WordPress post, so you can design it with the block editor (Gutenberg) or Elementor, publish it once, and it shows up exactly where you set it.
The plugin works with both classic PHP themes and modern Full Site Editing (FSE) / block themes like Twenty Twenty-Five — out of the box, with no extra configuration.
Archive locations supported:

Blog index (Posts page)
Front page (static front page)
All category archives
Specific category archives — target individual categories with a built-in category picker
Tag archives
Author archives
Search results pages
Date archives
CPT archives — target the archive page of any custom post type
CPT singles — target individual posts of any custom post type

Singular locations supported:

Single posts
All pages
Specific pages — target individual pages with a built-in page picker

Display controls:

Before or after the post loop — per section
Active / Inactive toggle — publish a section without displaying it yet
Visibility by login state — show to everyone, logged-in users only, or logged-out visitors only
Display scheduling — optional From / To date pickers; sections outside their date range are automatically hidden
Device visibility — show on Desktop, Tablet, Mobile, or any combination; implemented in CSS, works with all caching setups
User role targeting — restrict a section to specific WordPress user roles (e.g. Subscriber, Editor, Administrator)

Admin experience:

At-a-glance list table with Active, Location, Position, and Visibility columns
Drag-drop reordering — drag the ☰ handle to reorder sections; order saves instantly with no page reload
One-click Duplicate action to clone any section as a draft
Preview link in the meta box that jumps straight to the relevant archive page
Display order controlled via drag-drop or the standard Order field (Page Attributes)

Shortcode:

[kcas_section id="X"] — embed any section anywhere in your content; all display controls (scheduling, roles, devices) are respected

Performance & security:

Transient caching — sections are cached per location, position, and login state; cache is busted automatically when a section is saved or the plugin is deactivated
Admin CSS and JavaScript load only on the Archive Sections edit screen — zero frontend asset overhead
All inputs validated against whitelists; category IDs cast with absint(); nonces verified with sanitize_key()
Works with all standard caching plugins

For developers:

kcas_query_args — filter the WP_Query args before sections are fetched
kcas_section_html — filter the HTML of an individual section
kcas_sections_html — filter the complete output wrapper HTML
kcas_before_sections — action fires before the sections wrapper is output
kcas_after_sections — action fires after the sections wrapper is output
Sections are wrapped in

and

for easy CSS targeting

Perfect for:

Hero banners or intro text above your blog feed
Promotional blocks, CTA banners, or newsletter sign-ups below posts
Category-specific messaging (e.g. a disclaimer on a legal advice category)
Showing different content to logged-in members vs. public visitors
Search results page enhancements

延伸相關外掛

文章
Filter
Mastodon