Pagination not working with selected blogs

Hello, so in my theme I have a blog page in which pagination is working just fine when the default blog is selected, but when users select a blog via the blog input, pagination stops working properly. By that I mean, if I define the limit of each page to be 8 articles and I have a blog with 9 articles, the blog displays on page 1 the whole 9 articles and on page 2 the whole 9 articles again. Instead of showing 8 articles in page 1 and 1 in page 2. Again, pagintation works perfectly when they don’t select a blog, but when they do, that’s when it’s stops working.

Here’s my code:

{% if section.settings.featured_blog != blank %}
{% assign blog = section.settings.featured_blog  %}
{% endif %}

{%- paginate blog.articles by 8 -%}

{%- endpaginate -%}

I really don’t understand why pagination works fine with the default blog but not with a selected blog.

Anyways, thanks for the help!

Hi EmanuelVT, did you ever find a solution or fix for this? I’m experiencing this problem now when it was working previously. Any help would be much appreciated.

Mike