Set perPage to 0 and add Pagination block for better discoverability

This commit is contained in:
Karol Manijak 2024-09-18 17:25:35 +08:00 committed by Christopher Allford
parent 3bd104cd4a
commit 3a3927676a
No known key found for this signature in database
GPG Key ID: 80E44C778F08A88E
1 changed files with 13 additions and 2 deletions

View File

@ -62,8 +62,8 @@ const attributes = {
},
query: {
orderBy: 'post__in',
perPage: 5,
pages: 1,
perPage: 0,
pages: 0,
},
hideControls: [ CoreFilterNames.HAND_PICKED ],
};
@ -78,9 +78,20 @@ const heading: InnerBlockTemplate = [
},
];
const pagination: InnerBlockTemplate = [
'core/query-pagination',
{
layout: {
type: 'flex',
justifyContent: 'center',
},
},
];
const innerBlocks: InnerBlockTemplate[] = [
heading,
INNER_BLOCKS_PRODUCT_TEMPLATE,
pagination,
];
export default {