跳到内容

AgilePress Schema JSON-LD Block

v1.0.0

AgilePress · 2026年3月6日 上架

A powerful WordPress block for managing Schema.org structured data markup with template support and dynamic placeholder replacement.

正在使用
10+
评分
暂无
累计下载
710
最近更新
2026年3月6日
需要 WordPress 6.1+已测试到 6.9.12PHP 7.4+

贡献者

AgilePress Schema JSON-LD Block is a sophisticated block for adding Schema.org structured data to your WordPress posts and pages. It provides a clean, user-friendly interface for managing JSON-LD markup without cluttering your content editor.

Key Features:

  • Clean Editor Interface: Displays only a visual placeholder in the editor, keeping your workspace uncluttered
  • Sidebar Editing: All JSON-LD editing happens in the Block Sidebar via InspectorControls
  • Template Library: Pre-built templates for common schema types including LocalBusiness, Organization, and FAQ
  • Real-time Validation: Instant JSON validation feedback as you type
  • Dynamic Placeholders: Support for WordPress core placeholders and ACF custom fields
  • SEO Optimized: Outputs clean JSON-LD markup via wp_head for optimal search engine parsing

Supported Placeholders:

  • {{title}} – Post/page title
  • {{excerpt}} – Post excerpt
  • {{date}} – Publication date
  • {{url}} – Current post URL
  • {{featured_image_url}} – Featured image URL
  • {{acf:field_name}} – Any ACF field (supports strings and arrays)

Template Options:

  1. Blank – Start from scratch
  2. LocalBusiness – Perfect for local business listings
  3. Organization – For company/organization information
  4. FAQ – Structured FAQ markup

The block uses dynamic rendering to process placeholders on the frontend, ensuring your structured data always reflects current content.

Technical Details

The block uses a dynamic rendering approach with render_callback to process placeholders server-side. This ensures that:

  • Placeholders are replaced with current data on every page load
  • ACF fields are safely accessed and formatted
  • Invalid JSON never reaches the frontend
  • Search engines receive clean, valid JSON-LD markup

The frontend output is optimized with no extra paragraph or break tags, outputting only the pure JSON-LD script tag.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums