Home>Support>Post Carousel Widget not obeying limit

Post Carousel Widget not obeying limit

I have a post carousel widget where I have the following settings. The limit of posts is set to 12 by “posts_limit”, however in page this doesn’t work and there is a limitless scroll of as many posts as are available. Why does the carousel not limit itself to showing 12? Interestingly, if viewed in a visual editor, it does show a red number badge showing 12 as expected – just doesn’t do anything in practice. How do I ensure that only 12 are actually scrollable in the widget?

<!-- wp:sowb/siteorigin-widget-postcarousel-widget 

{
    "widgetClass":"SiteOrigin_Widget_PostCarousel_Widget",
    "widgetData":{
        "title":"Coming next",
        "default_thumbnail":"",
        "default_thumbnail_fallback":"",
        "image_size":"sow-carousel-default",
        "link_target":"same",
        "carousel_settings":{
            "loop":"on",
            "arrows":"on",
            "animation":"ease",
            "animation_speed":"400",
            "autoplay":"off",
            "autoplay_pause_hover":false,
            "timeout":"8000",
            "so_field_container_state":"closed"
        },
        "posts":{
            "post_type":["post"],
            "post__in":"",
            "tax_query":"",
            "tax_query_relation":"OR",
            "date_type":"specific",
            "date_query":"",
            "date_query_relative":"",
            "orderby":"menu_order",
            "order":"ASC",
            "posts_per_page":"",
            "posts_limit":"12",
            "sticky":"",
            "additional":""
        },

(then of course the various other stuff which is all default)

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 4 days, 16 hours ago Andrew Misplon
    Hi, I Work Here

    Hi Mike

    The Posts Limit setting is functional in our demo sites. If you’d like, I could take a look at the issue on your site and go from there.

  2. 4 days, 14 hours ago Mike Duguid

    Hi Andrew

    Thanks for taking a look. The widget can be seen in this page.

  3. 4 days, 12 hours ago Andrew Misplon
    Hi, I Work Here

    Thanks for the link. The post count looks correct. The loading indicator that normally displays as new posts are being loaded is incorrectly showing. On my end, no new posts beyond the max count load. Does the issue occur if you create a test page and insert only the Post Carousel Widget with the same settings? I’m unfortunately not able to replicate the issue at the moment.

Please log in to post on our forums. Signing up is free.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More