WordPress snippets.
Tested patterns from real builds covering WordPress, ACF, WooCommerce, Shopify Liquid and performance. Each one explains when to use it, not just the code.
WordPress register nav menu PHP – Custom Navigation
Register a nav menu location in functions.php, then render it in any template with wp_nav_menu().
May 2026 WordPressWordPress Custom Taxonomy Registration
Register a custom taxonomy in WordPress using register_taxonomy() — hierarchical (category-like) or flat (tag-like), with full i18n labels, REST API…
May 2026 WordPressProject Category Archive Navigation with 4 Column Grid
Build a filterable project grid with real category archive pages and a 4-column layout — no JavaScript, no plugin needed.
May 2026 WordPressWordPress Archive Query — pre_get_posts Control PHP
This WordPress archive query PHP snippet uses pre_get_posts to control posts per page for specific archives while avoiding admin and…
May 2026 WordPressWordPress Custom Post Type — CPT Registration PHP Boilerplate
This WordPress custom post type PHP snippet gives you a clean register_post_type boilerplate with labels, REST API support, archive configuration,…
May 2026