From 1872a4fee875ceba01cbad4e11d3f5ebaaac4318 Mon Sep 17 00:00:00 2001 From: PAMulligan Date: Sun, 21 Jun 2026 04:51:56 -0400 Subject: [PATCH] feat(theme): add SEO metadata (meta, OG, Twitter, JSON-LD) via wp_head (#116) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add real front-end SEO output to the flavian-shop FSE theme, generated from the queried object — not a docs change, and not duplicating an SEO plugin. - New inc/seo.php renders, on wp_head: a meta description (post excerpt/content -> term description -> site tagline, stripped and capped at 160 chars), Open Graph and Twitter Card tags (card type follows the featured image), and JSON-LD structured data (Article for posts, WebSite otherwise) encoded via wp_json_encode + JSON_HEX_* so it is XSS-safe inside ' . "\n"; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped +} +add_action( 'wp_head', 'flavian_shop_seo_jsonld', 6 );