Stackable icon indicating copy to clipboard operation
Stackable copied to clipboard

Posts block - duplicating posts block with category and changing tags/category, upon clicking load more button, it loads posts from a diff. category

Open andeng1106 opened this issue 3 years ago • 0 comments

Describe the bug Duplicating posts blocks with category and changing tags/category, upon clicking load more button, it loads posts from a diff. category

To Reproduce Steps to reproduce the behavior:

  1. Add a new page
  2. Add a Posts block
  3. Add Load More button in the block
  4. Add a specific category for the Posts displayed (e.g. Fruits) (Style > Query > Categories)
  5. Duplicate the Posts block
  6. In the duplicated block, change the category for the Posts displayed (e.g. Vegetables) (Style > Query > Categories)
  7. Preview page or publish page and View page
  8. In the first Posts block, click the Load More button
  9. Check if the posts are not related to the expected category assigned (Fruits) but posts related to the other category from 2nd post block (Vegetables)
  10. In the second Posts block, click the Load More button
  11. Check if the posts are related to the expected category assigned (Vegetables)

Expected behavior Scenario: Posts block 1 - Category: Fruits - Should display posts that has the category Fruits Posts block 2 - Category: Vegetables - Should display posts that has the category Vegetables

Actual behavior Posts block 1 - Category: Fruits - Displays posts that has the category Fruits but upon clicking Load More, it displays posts from category Vegetables - WRONG Posts block 2 - Category: Vegetables - Displays posts that has the category Vegetables and upon clicking Load More, it displays posts from category Vegetables - CORRECT

Screenshots

https://user-images.githubusercontent.com/103395655/169429558-705c23e0-f08c-4245-8626-39a7f8fe42c2.mp4

andeng1106 avatar May 05 '22 08:05 andeng1106