Enqueue script if not page template

You need to pass it as a function, or you already have but didn’t copy the whole code? If you did not do it, it should look something like this function page_template_not_enqueue() { if ( !is_page_template( ‘page-full-width.php’ ) ) { wp_enqueue_script( ‘flickity-js’, get_template_directory_uri() . ‘/js/flickity.js’, array(), filemtime( get_stylesheet_directory() . ‘/js/flickity.js’ ), true ); } } … Read more

How do I find out which (page) template file my custom child post is looking for?

If think you were using the wrong filter, please try using ‘single_template’. I assume you have created a plugin to create your custom post type. In the plugin folder you have a “templates” folder where you put the single page template called “palaver_single.php”. function palaver_single_mapping($single) { global $post; if ( $post->post_type == ‘palaver’ ) { … Read more