200+
July 24, 2023
January 8, 2019
Add Custom Dynamic Blocks for Render Post and Posts.
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.
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.
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.
Support template hierarchy. The templates are searched in the following order.
template-parts/blocks/advanced-posts-blocks/{Block_Type}/{Post_Type}-{Style}.phptemplate-parts/blocks/advanced-posts-blocks/{Block_Type}/{Post_Type}.phptemplate-parts/blocks/advanced-posts-blocks/{Block_Type}-{Style}.phptemplate-parts/blocks/advanced-posts-blocks/{Block_Type}.php
{Block_Type} is posts, post or children.
$class_name (string) Block style class names.$query (WP_Query) Query for block.attributes parameter to advanced_posts_blocks_posts_query filter.attributes parameter to advanced_posts_blocks_posts_query filter.advanced_posts_blocks_use_default_template filter.Use ComboboxControl for post selector.publicly_queryable: false )block.json.advanced_posts_blocks_default_template_path .$args in template.No installation instructions provided.
Register your block style.
register_block_style(
'advanced-posts-blocks/post', // or 'advanced-posts-blocks/posts', 'advanced-posts-blocks/children'
array(
'name' => 'your-style',
'label' => 'Your Style',
)
);
Create template template-parts/blocks/advanced-posts-blocks/post-your-style.php
if ( $query->have_posts() ) :
while ( $query->have_posts() ) :
$query->the_post();
// write template tag!
endwhile;
wp_reset_postdata();
endif;
No changelog available.
| Version | Download | Type |
|---|---|---|
| 5.2.0 | Download | Stable |
| 5.2.0-rc.1 | Download | Beta |
| 5.1.1 | Download | Stable |
| 5.0.0 | Download | Stable |
| 5.0.0-rc.1 | Download | Beta |
| 4.0.0 | Download | Stable |
| 4.0.0-rc.3 | Download | Beta |
| 4.0.0-rc.2 | Download | Beta |
| 4.0.0-rc | Download | Beta |
| 3.0.2 | Download | Stable |
| 3.0.1 | Download | Stable |
| 3.0.0 | Download | Stable |
| 2.1.1 | Download | Stable |
| 2.1.0 | Download | Stable |
| 2.1.0-rc.2 | Download | Beta |
| 2.1.0-rc.1 | Download | Beta |
| 2.0.0 | Download | Stable |
| 2.0.0-rc.2 | Download | Beta |
| 2.0.0-rc.1 | Download | Beta |
| 2.0.0-beta.3 | Download | Beta |
| 2.0.0-beta.2 | Download | Beta |
| 2.0.0-beta.1 | Download | Beta |
| 1.1.0-beta2 | Download | Beta |
| 1.1.0-beta | Download | Beta |
| 1.0.3 | Download | Stable |
| 1.0.2 | Download | Stable |
| 1.0.0 | Download | Stable |
| 0.9.0 | Download | Stable |
| 0.9.0-beta.1 | Download | Beta |
| 0.8.3 | Download | Stable |
| 0.8.3-rc.2 | Download | Beta |
| 0.8.3-rc.1 | Download | Beta |
| 0.8.2 | Download | Stable |
| 0.8.1 | Download | Stable |
| 0.8.0 | Download | Stable |
| 0.7.2 | Download | Stable |
| 0.7.1 | Download | Stable |
| 0.7.0 | Download | Stable |
| 0.6.0 | Download | Stable |
| 0.5.2 | Download | Stable |
| 0.5.0 | Download | Stable |
| 0.4.0 | Download | Stable |
| 0.3.3 | Download | Stable |
| 0.3.2 | Download | Stable |
| 0.3.1 | Download | Stable |
| 0.2.3 | Download | Stable |
| 0.2.2 | Download | Stable |
| 0.2.0 | Download | Stable |
| 0.1.6 | Download | Stable |
| 0.1.5 | Download | Stable |
| 0.1.4 | Download | Stable |
| 0.1.3 | Download | Stable |
| 0.1.2 | Download | Stable |
| 0.1.1 | Download | Stable |
| Development | Download | Trunk |