Post Carousel Widget not obeying limit

3 months ago · Last reply by Andrew Misplon 2 months ago

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.

Need fast email support? Get SiteOrigin Premium

Replies

5
  1. Andrew Misplon Staff 3 months, 3 days ago

    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. Mike Duguid 3 months, 2 days ago

    Hi Andrew

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

  3. Andrew Misplon Staff 3 months, 2 days ago

    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.

  4. Mike Duguid 2 months, 20 days ago

    I’ve created a blank page here with no other content that has the same issue – I can scroll the Post Carousel beyond 12 items as far as there are posts available (it scrolls to 20 items)

    Something I’ve noticed is that when editing the page using block editor and previewing the carousel – it behaves as expected (limited to 12)
    It’s only viewing the “live” page where the limit is not obeyed.

  5. Andrew Misplon Staff 2 months, 20 days ago

    Thanks, Mike. Coastal North is the last post I can see in the linked Carousel. After Coastal North, yes, the Carousel tries to load further posts and then loops back to Ben Rinnes. I’m not sure why we’re seeing different behavior. You can perhaps try logged out and in another browser, two separate tests to see if the results differ.

Replies on this thread are closed.

Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Have a different question or issue?

Start New Thread