Custom Post Types
-
if ( 'post' == $post_type || wpcp_woocommerce_support() && wpcp_is_pro() ) { wp_enqueue_script( 'wp-category-permalink.js', plugins_url('/wp-category-permalink.js', __FILE__), array( 'jquery' ), '1.6', false ); }
Is there a particular reason for only loading the JS if the post_type is “post”? This line is breaking the plugin for my custom post types.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Custom Post Types’ is closed to new replies.