WP Manifestindependent plugin directory
manifest / seo / faq-schema-block

FAQ Schema Block

A simple and clean Gutenberg Block for FAQ with proper schema.org implementation.

by Lasse Jellum · github.com/nytafar/faq-schema-block · website

★ 0stars
0forks

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/nytafar/faq-schema-block/archive/refs/heads/master.zip

A clean, performant FAQ block with smart schema.org implementation, optimized for both regular pages and WooCommerce products.

Features

Smart Schema Implementation

  • Automatic content-type detection (Product vs Regular pages)
  • Proper schema relationships in JSON-LD
  • WooCommerce product schema integration
  • Clean, semantic HTML output

Performance Focused

  • CSS-only animations
  • Zero JavaScript dependencies
  • Minimal DOM manipulation
  • Efficient block parsing
  • Inline styles only where needed

Developer Friendly

  • Direct block parsing API
  • Clean, documented code
  • Proper schema relationships
  • Semantic HTML with ARIA
  • Minimal styling footprint

Installation

  1. Upload to /wp-content/plugins/faq-schema-block/
  2. Activate through WordPress plugins screen
  3. Use in any post, page, or WooCommerce product

Technical Details

Schema Implementation

The plugin implements two types of schema relationships:

  1. Product Pages:

    {
    "@type": "Question",
    "mainEntityOfPage": {
     "@type": "Product",
     "@id": "[product-url]#product"
    }
    }
  2. Regular Pages:

    {
    "@type": "Question",
    "isPartOf": {
     "@type": "WebPage",
     "@id": "[page-url]#webpage"
    }
    }

Performance

  • CSS-only accordion animations
  • No external dependencies
  • Minimal DOM operations
  • Efficient block parsing
  • Inline styles only on relevant pages

Changelog

1.0.1

  • Added smart schema detection for WooCommerce products
  • Improved accordion animation performance
  • Fixed schema output location to head
  • Removed unnecessary styling
  • Added proper product schema relationships

1.0.0

  • Initial release

License

GPLv2 or later