Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

carouFredSel help

Featured Replies

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.

 

 

 

 

  • 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.

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.

  • 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.

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...

  • 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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.