Main/WordPress Fullstack/Blueprints/Gutenberg & FSE/Dynamic Block with Server-Side Rendering (render.php)
Back to «Gutenberg & FSE» cardsТрудозатраты~8 рабочих часов
Фриланс вилка~$360 – $600 (€320 – €560)
Оценка веб-студии~$760 – $1,280 (€720 – €1200)
ТЗ заказчика (исходный бриф):
We need a 'Latest Courses / Case Studies Grid' block that always displays the freshest content without requiring editors to re-save the page. It must render server-side in PHP and update instantly when new posts are published.
Ключевые требования:
- •Server-side dynamic block rendering via render.php (no static HTML in post_content)
- •Configurable attributes in block.json: postType, categories, numberOfPosts, columns
- •Live editor preview using ServerSideRender or lightweight React placeholder
- •High-performance database query caching via Transients API with automatic invalidation
- •Semantic markup with responsive CSS grid and schema markup
Ограничения проекта:
- •Strict database performance: 0 unindexed queries on large databases (100k+ posts)
- •Seamless fallback if no posts match query parameters
Критерии приёмки (KPI):
- Server execution time for render.php < 25ms (cached)
- Zero post_content bloat in wp_posts table
- Editor preview matches frontend output with 100% fidelity
Пошаговое практическое руководство по ТЗ
Подробный разбор архитектуры, код реализации и советы эксперта по каждому этапу: