February 15, 201412 yr Hello. I am trying to use the caroufredsel query plugin on a wordpress site that I am creating. I have the carousel working, but it does not display all of the blog posts. Im using the Wordpress test-data.xml file which gives you lots of posts to check your site with. Currently I have 28 posts published using this file, but only around 6 are being shown in the carousel. I don't know how to get the carousel to display all of the posts. These are the options that I have in the JS: if( $('.blog-carousel').length ) { $('.blog-carousel').each(function(){ $(this).carouFredSel({ responsive:true, auto:false, width:'100%', prev:$(this).parents(".blog-carousel-wrapper").find("a.prev-posts"), next:$(this).parents(".blog-carousel-wrapper").find("a.next-posts"), height:'auto', scroll:1, items:{ visible: {min: 1,max: 2} } }); }); } I'm not sure if these options are limiting the amount of posts shown. Does anyone have experience of using this carousel? If so, can anyone help with this problem? I would be very grateful if someone could point me in the right direction. Thanks.
February 16, 201412 yr Is the HTML for all 28 posts actually being output into the page? (look at the source code)
February 16, 201412 yr Author Thanks for your reply. Having checked the source code, all the 28 published posted are not being output onto the page. In the Wordpress backend, there are 28 published posts, but the carousel is only showing the last 6 to be published. I don't know how to get it to display all 28 published posts.
February 16, 201412 yr Hmm have you tried reducing the number of posts in the carousel?, perhaps start at 1 item, then 5, then 10, so you can see when it breaks? May also be worth trying the stock Jquery function (Hook up the carousel) at http://docs.dev7studios.com/jquery-plugins/caroufredsel - that should work as the syntax is correct.
February 16, 201412 yr Author Thanks for helping. I have worked out that it can display 10 posts. I added them in one by one and when I got to the 11th post, it stopped displaying the first post I added. It only displayed the last 10 posts added. I am at a loss as to why the carousel seems to limit the amount of posts displayed. I would like it to display them all and then if I had too many, I could then set a limit as to how many I displayed.
February 17, 201412 yr That's a stinker! Looking at the docs there's nothing to suggest that you can set a maximum number of items either. Is there anything unusual about the 11th entry? Are there any badly formatted/missing HTML tags? The last carousel I used was http://bxslider.com/ and had no problems with that at all, might be worth a go...
February 17, 201412 yr Author Thanks for all your help. I've managed to get it working. It was a bit of a schoolboy error on my part. I forgot there is a setting in Wordpress to limit the amount of posts shown. This was set to 10, hence why only 10 posts were showing. Once again, thanks for taking the time out to try and help me. Much appricated.
Create an account or sign in to comment