Advanced Posts Blocks
Add Custom Dynamic Blocks for Render Post and Posts. Multiple Posts Block Displays a list of posts. Posts Block filtered post type. (ex. post, page) and filter posts by multiple categories, tags or custom taxonomy terms. Override template by your theme. if template-parts/blocks/advanced-posts-blocks
About this tool.
Add Custom Dynamic Blocks for Render Post and Posts.
Multiple Posts Block
Displays a list of posts.
Posts Block filtered post type. (ex. post, page) and filter posts by multiple categories, tags or custom taxonomy terms.
Override template by your theme. if template-parts/blocks/advanced-posts-blocks/posts.php exists in your theme, replace default view.
Single Post Block
Displays the selected page or single post.
Override template by your theme. if template-parts/blocks/advanced-posts-blocks/post.php exists in your theme, replace default view.
Child Posts Block
Displays the child posts on the selected page or post.
Override template by your theme. if template-parts/blocks/advanced-posts-blocks/children.php exists in your theme, replace default view.
Override Template
Support template hierarchy. The templates are searched in the following order.
- 01template-parts/blocks/advanced-posts-blocks/{Block_Type}/{Post_Type}-{Style}.php
- 02template-parts/blocks/advanced-posts-blocks/{Block_Type}/{Post_Type}.php
- 03template-parts/blocks/advanced-posts-blocks/{Block_Type}-{Style}.php
- 04template-parts/blocks/advanced-posts-blocks/{Block_Type}.php {Block_Type} is posts, post or children.
Template variables
- $class_name (string) Block style class names.
- $query (WP_Query) Query for block.
5.2.0
- Use block.json api version 3.
- fix attributes parameter to advanced_posts_blocks_posts_query filter.
5.1.0
- Tested on WP 6.2 and PHP 8.2.
- add attributes parameter to advanced_posts_blocks_posts_query filter.
5.0.0
- Change icons.
- Refactor code.
- Tested WP 6.0.
- Use SSR only for Preview.