Listicles
MediaPress Listicles lets you create engaging, structured list-based content in WordPress. It includes customizable listicle items, and optional pagination blocks to display content in a “Load More” or “Range” format — all built with the WordPress Interactivity API.
Pagination
Section titled “Pagination”This plugin includes listicle pagination blocks:
mediapress/listicle-range-paginationmediapress/listicle-load-more
These are separate blocks which are linked to the main listicle block through the Interactivity API.
They will need to be added to the page and the pagination limit on the listicle block will need to have a value greater than 0.
Filters
Section titled “Filters”JavaScript
Section titled “JavaScript”mediaPress.listicle.allowedBlocks
Section titled “mediaPress.listicle.allowedBlocks”Defines which blocks can be used in the listicle block.
Parameters
| Name | Type | Description |
|---|---|---|
| allowedBlocks | array | An array of block names |
Usage
addFilter( 'mediaPress.listicle.allowedBlocks', 'my-plugin/add-listicle-blocks', (allowedBlocks) => [...allowedBlocks, 'mpa/slot'],);