amnestywebsite / humanity-theme

The Amnesty International WordPress Humanity Theme
https://wordpresstheme.amnesty.org/
Other
38 stars 10 forks source link

Bug - post list - object selection with pages - selected pages don't show on the back end after publishing #466

Open SophieAmnesty opened 2 weeks ago

SophieAmnesty commented 2 weeks ago

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. open a new post
  2. add a post list
  3. select grid style and object selection type
  4. select post type: pages
  5. add some pages to the list
  6. publish the post
  7. view the post
  8. go back into the editor
  9. see post list seems to have no content image

If I then select the block, click [hide preview] and select post type: pages. It shows only two out of the three posts I had selected:

image

Expected behaviour
When I go to the editor to update the pages in a post list, I should see the preview of the pages (just as they appear on the front end). And I should be able to hide the preview and see that all the selected pages are in the right hand column.

Actual behaviour
I just see a 'no posts' message. And when I hide the preview the selected posts aren't shown in the right hand column.

Link to a page where the bug is reproduced in isolation (optional)
https://isaidotorgstg.wpengine.com/en/latest/news/2024/11/post-list-object-selection-pages/

Screenshots
front end: image

code editor shows three pages are selected: image

Platform:
https://www.whatsmybrowser.org/b/UILZ7

Additional context
I tested it again, and it kept saying no posts. I clicked 'load more' a couple of times on the left-hand-side content list and then the posts showed again: image So I guess it pulled them through eventually.