Hot answers tagged


is_singular doesn't handle archives. Try is_post_type_archive( 'limitedrun' );


You can save your time and server load by not using wp_register_script and wp_register_style when you don't need them definitely. wp_enqueue_style and wp_enqueue_script do the same job themselves when not involving excessive functions. Here is easier and more readable code up to date with the accepted answer by @vancoder: <?php function opby_theme() { ...

Only top voted, non community-wiki answers of a minimum length are eligible