Found Image http://plugins.svn.wordpress.org/advanced-posts-blocks/assets/icon-256x256.png Advanced Posts Blocks | Plugin Review Network Skip to Content

Plugin Review Network

Plugin Review Network

an eye on the best wordpress plugins
Show Sidebar Hide Sidebar
[+] Sidebar [-] Sidebar
Plugin:
Rated:
86%
4.3 Stars (6 votes)

Home

WP.Org

ReadMe

Support
  • Author:
    Toro_Unit
Version: 0.9.0
Requires: WP 5.3
Last Updated:1973 days ago
Downloads:7233
Tags:
    blocks, posts
Download Plugin Package

Advanced Posts Blocks

Released on January 8, 2019.
Download Plugin Package

Version: 0.9.0

Create Blocks filtered by any post type and any categories, tags or custom taxonomy terms.

  • Description
  • FAQ


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

    {Block_Type} is posts, post or children.

Template variables

  • $class_name (string) Block style class names.
  • $query (WP_Query) Query for block.

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;


 

Click here to cancel reply.

Click here to cancel reply.


*

*


Please copy the string PF0yXs to the field below:

Home | Sitemap | Contact
Network Skin Theme for BioShip by WordQuest
Password Reset
Please enter your e-mail address. You will receive a new password via e-mail.