BACK TO DIRECTORY

Kayce Custom Archive Sections

by wpkayce

0.0
(0 ratings)

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 <section class="kcas-archive-section" id="kcas-section-{ID}"> and <div class="kcas-archive-sections kcas-archive-sections--{before|after}"> 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

Plugin Details

Active Installs
0
Total Downloads
324
Version
2.0.0
Requires WP
6.0
Requires PHP
7.4
Tested Up To
7.0.4
Added
2026-05-19
Last Updated
2026-08-12 4:40am GMT

Ratings

5
0
4
0
3
0
2
0
1
0