WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. vmallder
    Member
    Posted 10 months 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.

    Thanks!

    http://wordpress.org/plugins/carousel-horizontal-posts-content-slider/

  2. vmallder
    Member
    Posted 10 months 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
    Member
    Posted 9 months 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
    Member
    Plugin Author

    Posted 9 months 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' );

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.