feat: link a podcast show to where it is heard
Releases already had platform links; shows had none, so the Podcasts page could not point at Spotify or Apple. chrnx_show terms take a Spotify, Apple Podcasts and RSS URL now, rendered above the latest episode and only when a URL exists. The platform helper takes its definitions as an argument rather than always reading the release set: a podcast lives on Apple Podcasts, not Apple Music, and labelling it wrong would send people to the wrong service. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
8 files changed
+197
-6
No files matched your search
+1
-1
@@ -2,7 +2,7 @@
|
||||
define( 'CHRNX_VERSION', '0.2.0' );
|
||||
|
||||
// phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedVariableFound
|
||||
foreach ( array( 'setup', 'assets', 'taxonomies', 'editor', 'podcast-meta', 'project-meta', 'release-meta', 'track-meta', 'settings', 'queries', 'media', 'blocks', 'theme-preference' ) as $module ) {
|
||||
foreach ( array( 'setup', 'assets', 'taxonomies', 'editor', 'podcast-meta', 'project-meta', 'release-meta', 'show-meta', 'track-meta', 'settings', 'queries', 'media', 'blocks', 'theme-preference' ) as $module ) {
|
||||
// phpcs:ignore WordPress.WP.GlobalVariablesOverride.Prohibited
|
||||
$path = get_theme_file_path( "inc/{$module}.php" );
|
||||
if ( file_exists( $path ) ) {
|
||||
|
||||
Reference in new issue
Block a user