Title: Advanced Posts Blocks
Author: Toro_Unit (Hiroshi Urabe)
Published: <strong>January 8, 2019</strong>
Last modified: July 24, 2023

---

Search plugins

![](https://ps.w.org/advanced-posts-blocks/assets/banner-772x250.png?rev=2710417)

This plugin **hasn’t been tested with the latest 3 major releases of WordPress**.
It may no longer be maintained or supported and may have compatibility issues when
used with more recent versions of WordPress.

![](https://ps.w.org/advanced-posts-blocks/assets/icon-256x256.png?rev=2710417)

# Advanced Posts Blocks

 By [Toro_Unit (Hiroshi Urabe)](https://profiles.wordpress.org/toro_unit/)

[Download](https://downloads.wordpress.org/plugin/advanced-posts-blocks.5.2.0.zip)

 * [Details](https://wordpress.org/plugins/advanced-posts-blocks/#description)
 * [Reviews](https://wordpress.org/plugins/advanced-posts-blocks/#reviews)
 * [Development](https://wordpress.org/plugins/advanced-posts-blocks/#developers)

 [Support](https://wordpress.org/support/plugin/advanced-posts-blocks/)

## Description

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.

 1. `template-parts/blocks/advanced-posts-blocks/{Block_Type}/{Post_Type}-{Style}.php`
 2. `template-parts/blocks/advanced-posts-blocks/{Block_Type}/{Post_Type}.php`
 3. `template-parts/blocks/advanced-posts-blocks/{Block_Type}-{Style}.php`
 4. `template-parts/blocks/advanced-posts-blocks/{Block_Type}.php`
 5. {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.
 * Support query for ignore terms.

#### 4.0.0

 * add `advanced_posts_blocks_use_default_template` filter.

#### 3.0.1

 * Child Posts Block: Bug fix for post type selector.

#### 3.0.0

 * Single Post Block: Changed to fetch the post after the keyword is entered.
 * Optimize code.

#### 2.1.0

 * Multiple posts block: Support menu_order attributes.
 * Child posts block, Multiple posts block: Re-order query controls.
 * Refactoring components.

#### 2.0.0

 * Refactoring release.
 * Drop WordPress 5.5 and PHP 7.2
 * Single post block: `Use ComboboxControl` for post selector.

#### 1.0.3

 * Taxonomy panel bug fix.

#### 1.0.0

 * Support internal taxonomies. ( `publicly_queryable: false` )
 * WordPress 5.6-beta-4 tested.

#### 0.9.0

 * Multiple posts block: fix react hooks violation.

#### 0.8.3

 * Multiple posts block: block bug fix.
 * add `block.json`.

#### 0.8.2

 * Update build task.

#### 0.8.0

 * Add filter `advanced_posts_blocks_default_template_path` .
 * support `$args` in template.
 * Tested WordPress 5.5.

#### 0.7.2

 * bug fix for single post block.

#### 0.7.0

 * Allow select hidden post type.

#### 0.6.0

 * Posts Block: Support ignore sticky posts.

#### 0.5.0

 * Separate block script.
 * Refactoring.

#### 0.4.0

 * use react hooks.

#### 0.3.3

 * Term attribute bug fix.
 * Term control key fix.

#### 0.3.2

 * attribute bug fix.

#### 0.3.0

 * [Multiple Posts Block] Support offset attribute.

#### 0.2.2

 * Fixed typo.

#### 0.2.0

 * Remove wpautop in template.

#### 0.1.6

 * Default template bug fix.

#### 0.1.4

 * Bug fix.

#### 0.1.0

 * first release.

## Screenshots

 * [[
 * Blocks
 * [[
 * Multiple Posts Block
 * [[
 * Child Posts Block
 * [[
 * Single Post Block

## Blocks

This plugin provides 3 blocks.

 *   Multiple Posts Display multiple posts.
 *   Single Post Display single post.
 *   Child Posts Display children of selected post.

## FAQ

### How add another block style ?

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;
    ```

## Reviews

![](https://secure.gravatar.com/avatar/29bf3b4442acc09cab658c12f72e50224080a4e31eb28c824db317cb118ce1bf?
s=60&d=retro&r=g)

### 󠀁[Just What I needed](https://wordpress.org/support/topic/just-what-i-needed-1166/)󠁿

 [Michelle Curran](https://profiles.wordpress.org/mecurran/) January 4, 2022

This plugin is awesome – thank you so much! It is very easy to use and simple to
create a custom template of the block.

![](https://secure.gravatar.com/avatar/2d4db04e10182c0e5ef86ebd81dc54e4778ebb28ad9fa23cfebace6125ede94d?
s=60&d=retro&r=g)

### 󠀁[poor choices for default appearace, and no way to change it](https://wordpress.org/support/topic/poor-choices-for-default-appearace-and-no-way-to-change-it/)󠁿

 [Tyler Tork](https://profiles.wordpress.org/tylertork/) September 4, 2020

Tried single post mode. Doesn’t have any options to select display layout. Doesn’t
use featured image. Makes the entire text — excerpt included — a hyperlink with 
default formatting. Ugly as sin.

![](https://secure.gravatar.com/avatar/dd2a61926d3b37795ea1cba75e6d66565b1ee23ddb700c9124bd70e0042a056b?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-27204/)󠁿

 [alanander](https://profiles.wordpress.org/alanander/) July 29, 2020

Very useful plugin. Technical support is fast and efficient!

![](https://secure.gravatar.com/avatar/01b07823033778ae3dafb88b53eab1cafe4b3319ca87f8b70ee93cf6c236872b?
s=60&d=retro&r=g)

### 󠀁[Awesome plugin!](https://wordpress.org/support/topic/awesome-plugin-4916/)󠁿

 [chiakikouno](https://profiles.wordpress.org/chiakikouno/) March 28, 2020

With this plugin, you can customise the display for posts and pages lists, just 
as you did edit with the traditional php template. I was able to control the display/
hide of thumbnail images in posts and pages lists within BLOCK! Amazing! このプラグ
インがあれば、従来のphpテンプレート編集と同じように、投稿や固定ページのリスト表示
をカスタマイズできます。 これで固定ページと投稿のサムネイル画像の表示/非表示を、
ブロックの中でコントロールできました。すんばらしい！

![](https://secure.gravatar.com/avatar/394c1205c12cb04cdd05b0ab1d33b064b137296bc078c98af9ca637953b9de10?
s=60&d=retro&r=g)

### 󠀁[The plug-in I wanted](https://wordpress.org/support/topic/the-plug-in-i-wanted/)󠁿

 [Masahiko Kawai](https://profiles.wordpress.org/masakawai/) November 9, 2019

With this plugin, designers can customize blocks very easily.

![](https://secure.gravatar.com/avatar/96ab0eb95806132103fe6ff7f11a15a9894d84c495019f8abc7759dfa959c7f1?
s=60&d=retro&r=g)

### 󠀁[Amazing!](https://wordpress.org/support/topic/amazing-2207/)󠁿

 [chiilog (Chiaki Okamoto)](https://profiles.wordpress.org/mel_cha/) May 30, 2019

I wanted this!

 [ Read all 7 reviews ](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/)

## Contributors & Developers

“Advanced Posts Blocks” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)

“Advanced Posts Blocks” has been translated into 2 locales. Thank you to [the translators](https://translate.wordpress.org/projects/wp-plugins/advanced-posts-blocks/contributors)
for their contributions.

[Translate “Advanced Posts Blocks” into your language.](https://translate.wordpress.org/projects/wp-plugins/advanced-posts-blocks)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/advanced-posts-blocks/),
check out the [SVN repository](https://plugins.svn.wordpress.org/advanced-posts-blocks/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/advanced-posts-blocks/)
by [RSS](https://plugins.trac.wordpress.org/log/advanced-posts-blocks/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **5.2.0**
 *  Last updated **3 years ago**
 *  Active installations **200+**
 *  WordPress version ** 6.1 or higher **
 *  Tested up to **6.3.8**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/advanced-posts-blocks/), [French (France)](https://fr.wordpress.org/plugins/advanced-posts-blocks/),
   and [Japanese](https://ja.wordpress.org/plugins/advanced-posts-blocks/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/advanced-posts-blocks)
 * Tags
 * [blocks](https://wordpress.org/plugins/tags/blocks/)[posts](https://wordpress.org/plugins/tags/posts/)
 *  [Advanced View](https://wordpress.org/plugins/advanced-posts-blocks/advanced/)

## Ratings

 4.4 out of 5 stars.

 *  [  5 5-star reviews     ](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/?filter=3)
 *  [  1 2-star review     ](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/advanced-posts-blocks/reviews/)

## Contributors

 *   [ Toro_Unit (Hiroshi Urabe) ](https://profiles.wordpress.org/toro_unit/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/advanced-posts-blocks/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/torounit)