You can add the following filters to insert Blog Meta and Single Blog Meta to the Custom Post Types ( CPTs ) in the child themeโs functions.php โ-
/*
* Filters to support meta-structure for CPT Single Posts & Archive
*/
add_filter( 'astra_blog_archive_post_type_meta', 'astra_blog_archive_post_type_meta_func' );
function astra_blog_archive_post_type_meta_func( $post_type_array ) {
array_push( $post_type_array, 'movies' ); //Here movies is the slug of CPT, you will need to update with the respective slug of your CPT
return $post_type_array;
}
add_filter( 'astra_single_post_type_meta', 'astra_single_post_type_meta_func' );
function astra_single_post_type_meta_func( $post_type_array ) {
array_push( $post_type_array, 'movies' ); //Here movies is the slug of CPT, you will need to update with the respective slug of your CPT
return $post_type_array;
}
Note
Refer this doc onย How to Add Custom PHP Code?