From b16f4ed9298ad216a4730357c6d0dedbc452bed1 Mon Sep 17 00:00:00 2001 From: Bernat Date: Thu, 3 Apr 2025 15:38:17 +0200 Subject: [PATCH 1/2] Add template support for the rest of the cpt --- themes/osi/templates/template-no-header-title.php | 1 + 1 file changed, 1 insertion(+) diff --git a/themes/osi/templates/template-no-header-title.php b/themes/osi/templates/template-no-header-title.php index e40f800..40f436e 100644 --- a/themes/osi/templates/template-no-header-title.php +++ b/themes/osi/templates/template-no-header-title.php @@ -1,6 +1,7 @@ Date: Tue, 15 Apr 2025 14:30:08 +0200 Subject: [PATCH 2/2] Change permalink slug to ai/podcast --- themes/osi/functions.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/themes/osi/functions.php b/themes/osi/functions.php index 8b9e917..8404fb5 100755 --- a/themes/osi/functions.php +++ b/themes/osi/functions.php @@ -507,3 +507,17 @@ function osi_handle_supporter_form_flamingo_spam_status_change( string $new_stat } } add_action( 'transition_post_status', 'osi_handle_supporter_form_flamingo_spam_status_change', 10, 3 ); + +/** + * Modify the post type arguments for the podcast post type. + * + * @param array $args The post type arguments. + * + * @return array The modified post type arguments. + */ +function osi_ssp_register_post_type_args( $args ) { + $args['rewrite']['slug'] = 'ai/podcast'; + $args['rewrite']['with_front'] = false; + return $args; +} +add_filter( 'ssp_register_post_type_args', 'osi_ssp_register_post_type_args', 10, 1 );