Content Aggregator Block WP Registry grade C-. High-severity findings · 1 findingWP RegistryHigh-severity findings · 1 findingOpen the reportC-
Display the latest posts for a specified post type, taxonomy, and term.
Install
Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/happyprime/content-aggregator-block/releases/download/0.7.0/content-aggregator-block.0.7.0.zipRelease process
In the latest release branch:
wp dist-archive ./ content-aggregator-block.zip --format=zip- Tag a release in GitHub and attach
content-aggregator-block.zipto the release.
Filters
The following filters are provided to allow customization and extensibility.
contentAggregatorBlock.ExcludePostTypes
This JavaScript filter can be used to modify the options available in the Post type dropdown within the Sorting and Filtering panel. It receives the default array of post type slugs excluded from the options.
contentAggregatorBlock.itemHTML
This JavaScript filter can be used to modify the markup for an individual post item as displayed on editor views. It receives the default markup, the post data (as returned by the REST API route registered by this plugin), and the block attributes.
content_aggregator_block_item
This PHP filter can be used to modify the markup for an individual post item as displayed on front-end views. It receives the default markup, the post data, and the block attributes.
content_aggregator_block_endpoint_post_data
This PHP filter can be used to modify the data returned by the REST API route registered by this plugin. It receives the default data and the post ID.
Changelog
0.7.0
- Add WP-CLI commands for auditing and upgrading deprecated attributes.
- Improve fallback handling for deprecated
customTaxonomyattribute. - Improve handling of the
customPostTypeattribute. - Update PHP tooling to use Happy Prime coding standards.
- Fix a bug when generating post format classes.
1.0.0 will be a breaking change that eliminates the customTaxonomy attribute, termID attribute, and happyprime/latest-custom-posts transform handler.
0.6.1
- Add missing default value for
customTaxonomyblock attribute. - Bump minimum PHP support to 7.4.
0.6.0
- Use post meta to identify which content contains content aggregator blocks.
- Clear Kinsta page cache for URLs containing content aggregator blocks when content is updated.
- Fix a class name attribute for byline authors.
- Update project to use Node 18.
- Update
wordpress/scriptsto 26.6.0.
0.5.3
- Allow more than 100 items in a Content Aggregator block.
- Update
wordpress/scriptsto 26.1.0.
0.5.2
- Add
content_aggregator_block_pre_render_itemfilter to allow a plugin or theme to fully take over the display of an item.
0.5.1
- Add last modified date to sorting options.
0.5.0
- Enable scrolling in the multiple select interface used for terms.
- Add a
cab-item-titleclass to the anchor wrapping item titles. - Fix an issue looping through post IDs instead of objects.
0.4.1
- Allow CAB to be filtered by non-public taxonomies.
Releases
9 releases. Each count is every asset in that release; expand a row for the breakdown.
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.