WP Manifestindependent plugin directory
manifest / editor / ws-faq-block

WS FAQ Block

Plugin WordPress – bloc FAQ métier SCF/ACF compatible (test SCF Blocks)

by Nicolas NOSAL · github.com/nnosal/ws-faq-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/nnosal/ws-faq-block/archive/refs/heads/main.zip

Readme

WS FAQ Block

Plugin WordPress — bloc FAQ métier compatible Secure Custom Fields (SCF) et ACF Pro.

Créé pour tester l'intégration SCF Blocks dans un environnement WordPress propre.


Prérequis

  • WordPress 6.3+
  • Secure Custom Fields (plugin WordPress.org) ou ACF Pro ≥ 6.0
  • PHP 8.1+

Installation

# Depuis la racine de votre projet WordPress (Bedrock ou classique)
git clone git@github.com:nnosal/ws-faq-block.git wp-content/plugins/ws-faq-block

# OU via Composer (si vous utilisez Bedrock + VCS)
# Ajoutez dans composer.json :
# {
#   "repositories": [
#     { "type": "vcs", "url": "https://github.com/nnosal/ws-faq-block" }
#   ],
#   "require": { "nnosal/ws-faq-block": "dev-main" }
# }

Activez ensuite le plugin dans Extensions > Extensions installées.


Structure

ws-faq-block/
├── ws-faq-block.php          # Bootstrap plugin
├── includes/
│   ├── register-block.php    # Enregistrement du bloc via block.json
│   └── register-fields.php   # Champs SCF/ACF (PHP, pas d'import UI)
└── blocks/
    └── faq/
        ├── block.json        # Définition du bloc (apiVersion 3)
        ├── render.php        # Template de rendu PHP
        ├── style.css         # CSS front
        └── editor.css        # CSS éditeur

Champs disponibles

Champ Type Description
faq_heading Text Titre de la section
faq_items Repeater Liste de Q/R (question + answer)
faq_schema True/False Active le JSON-LD FAQPage (SEO)

Ce que le bloc teste

  • [ ] SCF détecte et charge bien le block.json
  • [ ] Les champs apparaissent dans le panneau latéral de l'éditeur
  • [ ] Le repeater fonctionne (ajout / suppression de Q/R)
  • [ ] Le rendu PHP s'affiche en preview dans l'éditeur
  • [ ] Le rendu front est correct
  • [ ] Le JSON-LD FAQPage est injecté si activé
  • [ ] L'accordéon JS fonctionne sans dépendance

Licence

MIT — © Nicolas NOSAL / WebService'Est

Read the full README on GitHub →