am creating custom post type, i created owl carousel slider function, my question is i want to display the carousel slider in custom post type code…..

function custom_owlcarousel() {

wp_enqueue_script('jquery', "", false, '2.0.3', true);

wp_enqueue_script('owl-min', get_stylesheet_directory_uri().'/owl/owl.carousel.min.js', array('jquery'), NULL, true);

wp_enqueue_style( 'owl-carousel-style', get_stylesheet_directory_uri().'/owl/owl.carousel.css'); 

wp_enqueue_style( 'owl-trans-style', get_stylesheet_directory_uri().'/owl/owl.transitions.css' ); 

add_action( ‘wp_enqueue_scripts’, ‘custom_owlcarousel’ );

Read more here: wordpress custom post type owl carousel silder


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: