Skip to content

CPT Template Audit and Logic Consolidation

The LocalWP migration has already justified itself by exposing a long-standing production bug in the Artist template. A warning involving ACF Post Objects revealed that Narrative Thread relationships were not functioning correctly, and further investigation suggests that some templates still contain older custom implementations that predate newer shared functions and shortcodes.

This task is to conduct a structured audit of major CPT templates and related helper code. The objective is to identify duplicate logic, outdated relationship handling, inconsistent query patterns, performance bottlenecks, and places where shared functions should replace template-specific implementations. The end goal is a cleaner, more maintainable architecture with centralized logic for Narrative Threads, Fragments, relationships, and other reusable content systems.