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

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

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.1.1) 或搜尋安裝

① 下載 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)
All category archives
Specific category archives — target individual categories with a built-in category picker
Tag archives
Author archives
Search results pages
Date archives

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

Admin experience:

At-a-glance list table with Active, Location, Position, and Visibility columns
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 the standard Order field (Page Attributes)

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
Apply Filters
Mastodon