Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter vmallder

    (@vmallder)

    Never mind, I figured out that this plugin does not work “out of the box” for custom post types. After I added “, ‘post_type’ => ‘any’ );” to the end of line 33 in carousel-horizontal-post-slider.php, it worked fine.

    how exactly did you get it to work? Mine is doing the same thing, but I am not sure what or where to add post_type=>any too? my lines 33 for carousel-horizontal-post-slider.php looks like this. …

    function Carousel_shortcode()
    
    {
    
    	global $wpdb;
    
    	$displayimage = get_option('tchpcs_displayimage');
    
    	$word_imit = get_option('tchpcs_word_limit');
    
    	$qp_showposts = get_option('tchpcs_query_posts_showposts');
    
    	$qp_orderby= get_option('tchpcs_query_posts_orderby');
    
    	$qp_order= get_option('tchpcs_query_posts_order');
    
    	$qp_category= get_option('tchpcs_query_posts_category');
    Plugin Author subhansanjaya

    (@subhansanjaya)

    $args = array( 'numberposts' => $qp_showposts, 'category' => $qp_category, 'order'=> $qp_order, 'orderby' => $qp_orderby );
    Please, find the line of code above and replace it with the following code.
    $args = array( 'numberposts' => $qp_showposts, 'category' => $qp_category, 'order'=> $qp_order, 'orderby' => $qp_orderby, 'post_type' => 'any' );

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How did you get this plugin to actually work?’ is closed to new replies.