Custom Schema Box Generator
Custom Schema Box Generator is Free WordPress plugin. Add JSON-LD structured data (Schema.org markup) to your WordPress site. Improve SEO and get rich results in Google search!
by FARAZFRANK · github.com/farazfrank/custom-schema-box-generator
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/farazfrank/custom-schema-box-generator/archive/refs/heads/main.zipCustom Schema Box Generator WordPress Plugin
A powerful, user-friendly WordPress plugin for adding JSON-LD structured data (Schema.org markup) to your website. Improve your SEO and get rich results in Google search with ease!
🌟 Features
Core Features
- ✅ 20+ Pre-built Schema Templates - Ready-to-use templates for common schema types
- ✅ Dynamic Placeholders - Auto-populate schemas with post data (15+ placeholders)
- ✅ Individual & Dynamic Modes - Choose unique schema per post or common schema for all
- ✅ Granular Control - Enable/disable schemas per post type and individual items
- ✅ Custom Post Types Support - Works with any CPT
- ✅ One-Click Copy - Copy templates to clipboard instantly
- ✅ Select All/Deselect All - Bulk enable/disable for efficiency
- ✅ Responsive Design - Works perfectly on mobile and desktop
- ✅ WordPress Standards - Clean, secure, and optimized code
User Experience
- 📚 Comprehensive How-to Guide - Step-by-step instructions
- ❓ FAQ Section - Answers to common questions
- 🎨 Beautiful UI - Modern, intuitive interface
- 🔍 Debug Mode - Troubleshoot post type detection
- 💝 No Ads or Upsells - 100% free and open-source
📦 Installation
Method 1: WordPress Admin (Recommended)
- Download the plugin ZIP file
- Go to WordPress Admin → Plugins → Add New
- Click Upload Plugin
- Choose the ZIP file and click Install Now
- Click Activate Plugin
Method 2: Manual Installation
- Download and extract the plugin ZIP file
- Upload the
custom-schema-box-generatorfolder to/wp-content/plugins/ - Go to WordPress Admin → Plugins
- Find Custom Schema Generator and click Activate
Method 3: FTP Upload
- Extract the plugin ZIP file
- Connect to your server via FTP
- Upload the
custom-schema-box-generatorfolder to/wp-content/plugins/ - Activate the plugin from WordPress admin
🚀 Quick Start
Step 1: Enable Schema for Post Types
- Go to Settings → Schema Box Generator → Settings
- Select "Yes" for the post types you want to add schema to
- Check the individual pages/posts where you want schema
- Click Save Settings
Step 2: Add Schema to Your Content
- Edit any Page, Post, or Custom Post Type
- Scroll down to the "Custom Schema (JSON-LD)" meta box
- Enter your JSON-LD schema code or use a template
- Click Update or Publish
Step 3: Use Schema Templates (Recommended)
- Go to Settings → Schema Box Generator → Schema Templates
- Browse available templates
- Click "Copy Template" on the template you want
- Paste into your post/page schema field
- Customize the values to match your content
- Save your post/page
📋 Available Schema Templates
| Template | Schema Type | Best For |
|---|---|---|
| 📄 Article | Article | Blog posts, articles |
| 🛍️ Product | Product | E-commerce products |
| 🏢 Local Business | LocalBusiness | Physical businesses |
| ❓ FAQ | FAQPage | FAQ pages |
| 📝 How-To | HowTo | Step-by-step guides |
| 🍳 Recipe | Recipe | Cooking recipes |
| 📅 Event | Event | Events, conferences |
| 🎥 Video | VideoObject | Video content |
| 🏛️ Organization | Organization | Company information |
| 🔗 Breadcrumb | BreadcrumbList | Navigation breadcrumbs |
| ⭐ Review | Review | Product/service reviews |
| 📚 Course | Course | Online courses |
| 💼 Job Posting | JobPosting | Job listings |
| 📖 Book | Book | Books, publications |
| 💻 Software | SoftwareApplication | Software, apps |
| 🍽️ Restaurant | Restaurant | Restaurants, cafes |
| 🎵 Music | MusicRecording | Songs, albums |
| 🎙️ Podcast | PodcastEpisode | Podcast episodes |
| 📰 News Article | NewsArticle | News articles |
| 🏥 Medical | MedicalCondition | Medical information |
🔧 Dynamic Placeholders
Use these placeholders in your schemas to automatically populate with post data:
| Placeholder | Description | Example Output |
|---|---|---|
{{post_title}} |
Post/Page Title | "My Awesome Article" |
{{post_excerpt}} |
Post Excerpt | "This is a brief summary..." |
{{post_date}} |
Publication Date (ISO 8601) | "2025-01-15T10:30:00+00:00" |
{{post_modified}} |
Last Modified Date (ISO 8601) | "2025-01-20T14:30:00+00:00" |
{{author_name}} |
Author Display Name | "John Doe" |
{{author_url}} |
Author Archive URL | "https://example.com/author/john-doe/" |
{{featured_image}} |
Featured Image URL | "https://example.com/image.jpg" |
{{post_url}} |
Post Permalink | "https://example.com/my-post/" |
{{site_name}} |
Website Name | "My Awesome Website" |
{{site_url}} |
Website URL | "https://example.com" |
{{site_description}} |
Website Tagline | "Just another WordPress site" |
{{post_category}} |
Post Categories (comma-separated) | "Technology, WordPress, SEO" |
{{post_category_first}} |
First Post Category | "Technology" |
{{post_tags}} |
Post Tags (comma-separated) | "tutorial, guide, tips" |
{{post_id}} |
Post ID | "123" |
Example with Placeholders:
{
"@context": "https://schema.org",
"@type": "Article",
"headline": "{{post_title}}",
"author": {
"@type": "Person",
"name": "{{author_name}}",
"url": "{{author_url}}"
},
"publisher": {
"@type": "Organization",
"name": "{{site_name}}",
"url": "{{site_url}}"
},
"datePublished": "{{post_date}}",
"dateModified": "{{post_modified}}",
"image": "{{featured_image}}",
"url": "{{post_url}}",
"articleSection": "{{post_category_first}}",
"keywords": "{{post_tags}}"
}
The placeholders will be automatically replaced with actual post data when the page loads!
🔄 Individual vs Dynamic Mode
Choose how you want to apply schema to your post types:
Individual Mode (Default)
- Add unique schema to each post/page individually
- Best for content with different schema types
- More control but requires manual setup for each item
- Select specific posts/pages where schema should appear
Dynamic Mode (Recommended for Large Sites)
- Use one common schema template for all posts of a type
- Automatically applies to all posts/pages of that type
- Uses placeholders to populate data dynamically
- Perfect for blogs with many posts using the same schema structure
- Saves time - no need to add schema to each post individually
Example: Dynamic Schema for Blog Posts
Set "Posts" to Dynamic Mode and add this schema:
{
"@context": "https://schema.org",
"@type": "BlogPosting",
"headline": "{{post_title}}",
"description": "{{post_excerpt}}",
"author": {
"@type": "Person",
"name": "{{author_name}}"
},
"publisher": {
"@type": "Organization",
"name": "{{site_name}}"
},
"datePublished": "{{post_date}}",
"dateModified": "{{post_modified}}",
"image": "{{featured_image}}",
"articleSection": "{{post_category_first}}"
}
This schema will automatically apply to ALL your blog posts with their respective data!
📖 Documentation
Settings Tab
Configure which post types and individual items should have the schema meta box.
Features:
- Enable/disable by post type (Pages, Posts, CPTs)
- Select individual items with checkboxes
- Select All / Deselect All buttons
- Debug mode to troubleshoot CPT detection
Schema Templates Tab
Browse and copy 20+ pre-built schema templates.
Features:
- Grid layout with template cards
- One-click copy to clipboard
- View code in modal
- Template descriptions and use cases
How to Use Tab
Comprehensive step-by-step guide covering:
- Enabling schema for post types
- Adding schema to content
- Using templates
- Testing your schema
- Using dynamic placeholders
- Pro tips and best practices
FAQ Tab
Answers to 13+ frequently asked questions:
- What is Schema Markup?
- What is JSON-LD?
- How to verify schema is working?
- Common JSON errors and solutions
- Compatibility with other plugins
- And more...
Donate Tab
Support the plugin development with a donation.
🎯 Use Cases
For Bloggers
- Add Article schema to blog posts
- Improve search engine visibility
- Get rich snippets in Google
For E-commerce
- Add Product schema with pricing
- Show star ratings in search results
- Display availability status
For Local Businesses
- Add LocalBusiness schema
- Show address, phone, hours
- Appear in local search results
For Content Creators
- Add Video schema for videos
- Add Recipe schema for recipes
- Add HowTo schema for tutorials
For News Sites
- Add NewsArticle schema
- Show publication date
- Display author information
🔍 Testing Your Schema
Method 1: View Page Source
- Visit your page in a browser
- Right-click and select "View Page Source"
- Search for `