Is it safe/recommended to use wp_enqueue_script function outside the functions.php file?
I created multiple post formats, and when i use an audio post format, i want to include some additional javascript for the audio player. So, i include the content-audio.php like this: <?php while ( have_posts() ) : the_post(); ?> <?php get_template_part( ‘blog/content’, get_post_format() ); ?> <?php endwhile; ?> This loads the blog/content-audio.php as expected: <article … Read more