New component for Podcasts
This commit is contained in:
@@ -8867,4 +8867,17 @@ function enqueue_custom_script() {
|
||||
wp_enqueue_script('own-custom-script', get_template_directory_uri() . '/libs/CookieNoticePro/cookienoticepro.script.js', array('jquery'), '1.0', true);
|
||||
wp_enqueue_script('custom-script', get_template_directory_uri() . '/custom-code.js', array('jquery'), '1.0.0', true);
|
||||
}
|
||||
add_action('wp_enqueue_scripts', 'enqueue_custom_script');
|
||||
add_action('wp_enqueue_scripts', 'enqueue_custom_script');
|
||||
|
||||
function podcasts_list_shortcode($atts = [], $content = null) {
|
||||
ob_start();
|
||||
|
||||
$file = get_template_directory() . '/includes/podcasts-list.php';
|
||||
if (file_exists($file)) {
|
||||
include $file;
|
||||
}
|
||||
|
||||
return ob_get_clean();
|
||||
}
|
||||
|
||||
add_shortcode('podcasts_list', 'podcasts_list_shortcode');
|
||||
|
||||
Reference in New Issue
Block a user