Carousel Horizontal Posts Content Slider
[resolved] How did you get this plugin to actually work? (4 posts)

  1. vmallder
    Posted 2 years ago #

    Could someone who is using this plug in explain how you got it to work?
    I am having various problems. I can't get it to scroll, or display left/right arrows, or display more than 2 posts? And I see the developer hasn't responded to anything in 3 weeks. So I'm hoping someone on here can help me.



  2. vmallder
    Posted 2 years ago #

    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.

  3. nilocher
    Posted 2 years ago #

    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');
  4. subhansanjaya
    Plugin Author

    Posted 2 years ago #

    $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' );

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic


No tags yet.