Blog, Website & Page Publishing

shiyon
Contributor

Blog pagination issue

SOLVE

I created a blog, and in that, there's a section called 'latest articles' with a module. I cloned the same module to create another section called 'all articles.' Both sections have default pagination. Now, when I click on the pagination of 'latest articles,' it affects the 'all articles' section. However, the intended behavior is for 'latest articles' pagination to work independently. How can I fix this issue?

In addition, when clicking on the 'All posts' link, it redirects to another page where only 6 out of 11 posts are displayed. For the home page, I want to showcase 6 posts in the 'latest articles' section, so I adjusted the total post count to 6 in the blog settings. Unfortunately, this adjustment is also impacting the 'all' page. How can I display all the posts on the 'all' page. Does anyone have any suggestions?

https://www.highroadsolutions.com/highroad-solution-blog

 

Thanks,

Aiswarya

0 Upvotes
1 Accepted solution
Jnix284
Solution
Hall of Famer

Blog pagination issue

SOLVE

You're welcome @shiyon, I'm sorry but I am not able to provide a coded solution for you.

 

If you're not a developer, I recommend posting your request for help in the #jobs channel of the Developer Slack to see if you can find someone to help. 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon

View solution in original post

0 Upvotes
3 Replies 3
shiyon
Contributor

Blog pagination issue

SOLVE

Thank you for providing insight. Can you please help with a solution to update the code in the module for unique values? Your guidance would be much appreciated.

 

Thanks,

Aiswarya

0 Upvotes
Jnix284
Solution
Hall of Famer

Blog pagination issue

SOLVE

You're welcome @shiyon, I'm sorry but I am not able to provide a coded solution for you.

 

If you're not a developer, I recommend posting your request for help in the #jobs channel of the Developer Slack to see if you can find someone to help. 


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Upvotes
Jnix284
Hall of Famer

Blog pagination issue

SOLVE

@shiyon happy to share some insight - the reason this is happening is because the original module is setting a value for the number of posts and even though you cloned the module and used different settings, the cloned module is using the same value (there is only one place in the code where the number of posts is being stored).

 

The code in the module would have to be updated so they have unique values.


If my reply answered your question please mark it as a solution to make it easier for others to find.


Jennifer Nixon
0 Upvotes