studiopress / atomic-blocks

Atomic Blocks has been renamed to Genesis Blocks. This plugin is no longer maintained! Visit Atomic Blocks → Migrate to migrate to the new plugin.
https://wordpress.org/plugins/genesis-blocks/
GNU General Public License v3.0
157 stars 58 forks source link

Post/Page Grid block: Number of Pages displayed is incorrectly limited #389

Open mindctrl opened 4 years ago

mindctrl commented 4 years ago

Describe the bug When the Content Type is set to Page, it's possible the block doesn't display all the Pages selected.

This appears to be caused by the default attribute value for postsToShow being set to 6, even though it's not used by the page query. I have not dug deep to verify.

To Reproduce Steps to reproduce the behavior:

  1. Add Post and Page Grid block to a new page
  2. Change Content Type to Page
  3. Select 7 or more pages
  4. Save new page
  5. View new page
  6. Notice only 6 pages are shown instead of 7 or more

Expected behavior I expect the block to display all of the pages I selected.

Version