wordpress custom post type owl carousel silder

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', "http://ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js", 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

Leave a Reply

Your email address will not be published. Required fields are marked *