{"id":96121,"date":"2019-01-08T15:39:25","date_gmt":"2019-01-08T15:39:25","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/advanced-posts-blocks\/"},"modified":"2023-07-24T17:15:37","modified_gmt":"2023-07-24T17:15:37","slug":"advanced-posts-blocks","status":"publish","type":"plugin","link":"https:\/\/ibo.wordpress.org\/plugins\/advanced-posts-blocks\/","author":6734486,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"5.2.0","stable_tag":"5.2.0","tested":"6.3.8","requires":"6.1","requires_php":"7.4","requires_plugins":null,"header_name":"Advanced Posts Blocks","header_author":"Toro_Unit","header_description":"Powerfull posts blocks.","assets_banners_color":"6ee555","last_updated":"2023-07-24 17:15:37","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/torounit","header_plugin_uri":"https:\/\/github.com\/torounit\/advanced-posts-blocks","header_author_uri":"https:\/\/torounit.com","rating":4.4,"author_block_rating":0,"active_installs":200,"downloads":21228,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":2,"sections":["description","faq"],"tags":{"0.1.1":{"tag":"0.1.1","author":"Toro_Unit","date":"2019-01-08 15:39:17"},"0.1.2":{"tag":"0.1.2","author":"Toro_Unit","date":"2019-01-08 18:08:08"},"0.1.3":{"tag":"0.1.3","author":"Toro_Unit","date":"2019-01-11 05:53:43"},"0.1.4":{"tag":"0.1.4","author":"Toro_Unit","date":"2019-01-17 09:11:46"},"0.1.5":{"tag":"0.1.5","author":"Toro_Unit","date":"2019-01-18 05:47:05"},"0.1.6":{"tag":"0.1.6","author":"Toro_Unit","date":"2019-01-18 07:55:41"},"0.2.0":{"tag":"0.2.0","author":"Toro_Unit","date":"2019-01-31 08:29:41"},"0.2.2":{"tag":"0.2.2","author":"Toro_Unit","date":"2019-04-01 11:15:32"},"0.2.3":{"tag":"0.2.3","author":"Toro_Unit","date":"2019-04-01 11:31:51"},"0.3.1":{"tag":"0.3.1","author":"Toro_Unit","date":"2019-09-13 01:44:28"},"0.3.2":{"tag":"0.3.2","author":"Toro_Unit","date":"2019-09-24 13:43:52"},"0.3.3":{"tag":"0.3.3","author":"Toro_Unit","date":"2019-11-09 15:16:48"},"0.4.0":{"tag":"0.4.0","author":"Toro_Unit","date":"2019-11-09 18:16:11"},"0.5.0":{"tag":"0.5.0","author":"Toro_Unit","date":"2020-01-17 04:24:15"},"0.5.2":{"tag":"0.5.2","author":"Toro_Unit","date":"2020-02-19 15:28:47"},"0.6.0":{"tag":"0.6.0","author":"Toro_Unit","date":"2020-03-10 02:58:48"},"0.7.0":{"tag":"0.7.0","author":"Toro_Unit","date":"2020-05-10 08:34:19"},"0.7.1":{"tag":"0.7.1","author":"Toro_Unit","date":"2020-05-10 08:44:17"},"0.7.2":{"tag":"0.7.2","author":"Toro_Unit","date":"2020-05-10 09:01:13"},"0.8.0":{"tag":"0.8.0","author":"Toro_Unit","date":"2020-07-23 15:11:14"},"0.8.1":{"tag":"0.8.1","author":"Toro_Unit","date":"2020-07-23 19:13:06"},"0.8.2":{"tag":"0.8.2","author":"Toro_Unit","date":"2020-07-23 19:31:22"},"0.8.3":{"tag":"0.8.3","author":"Toro_Unit","date":"2020-08-26 03:46:45"},"0.8.3-rc.1":{"tag":"0.8.3-rc.1","author":"Toro_Unit","date":"2020-07-27 08:29:53"},"0.8.3-rc.2":{"tag":"0.8.3-rc.2","author":"Toro_Unit","date":"2020-08-26 02:03:50"},"0.9.0":{"tag":"0.9.0","author":"Toro_Unit","date":"2020-08-26 08:22:35"},"0.9.0-beta.1":{"tag":"0.9.0-beta.1","author":"Toro_Unit","date":"2020-08-26 06:23:31"},"1.0.0":{"tag":"1.0.0","author":"Toro_Unit","date":"2020-11-13 12:24:13"},"1.0.2":{"tag":"1.0.2","author":"Toro_Unit","date":"2020-11-13 14:55:47"},"1.0.3":{"tag":"1.0.3","author":"Toro_Unit","date":"2020-11-27 03:54:26"},"1.1.0-beta":{"tag":"1.1.0-beta","author":"Toro_Unit","date":"2020-12-08 05:04:04"},"1.1.0-beta2":{"tag":"1.1.0-beta2","author":"Toro_Unit","date":"2020-12-08 10:48:44"},"2.0.0":{"tag":"2.0.0","author":"Toro_Unit","date":"2021-01-14 09:12:48"},"2.0.0-beta.1":{"tag":"2.0.0-beta.1","author":"Toro_Unit","date":"2020-12-08 16:10:21"},"2.0.0-beta.2":{"tag":"2.0.0-beta.2","author":"Toro_Unit","date":"2020-12-16 03:08:29"},"2.0.0-beta.3":{"tag":"2.0.0-beta.3","author":"Toro_Unit","date":"2020-12-21 12:41:20"},"2.0.0-rc.1":{"tag":"2.0.0-rc.1","author":"Toro_Unit","date":"2021-01-14 07:06:26"},"2.0.0-rc.2":{"tag":"2.0.0-rc.2","author":"Toro_Unit","date":"2021-01-14 07:32:15"},"2.1.0":{"tag":"2.1.0","author":"Toro_Unit","date":"2021-02-08 06:14:32"},"2.1.0-rc.1":{"tag":"2.1.0-rc.1","author":"Toro_Unit","date":"2021-02-05 14:40:47"},"2.1.0-rc.2":{"tag":"2.1.0-rc.2","author":"Toro_Unit","date":"2021-02-08 06:00:17"},"2.1.1":{"tag":"2.1.1","author":"Toro_Unit","date":"2021-04-07 13:34:44"},"3.0.0":{"tag":"3.0.0","author":"Toro_Unit","date":"2021-04-15 05:07:08"},"3.0.1":{"tag":"3.0.1","author":"Toro_Unit","date":"2021-09-06 07:24:50"},"3.0.2":{"tag":"3.0.2","author":"Toro_Unit","date":"2021-11-08 08:27:19"},"4.0.0":{"tag":"4.0.0","author":"Toro_Unit","date":"2022-04-18 05:17:16"},"4.0.0-rc":{"tag":"4.0.0-rc","author":"Toro_Unit","date":"2022-04-16 02:21:47"},"4.0.0-rc.2":{"tag":"4.0.0-rc.2","author":"Toro_Unit","date":"2022-04-16 03:58:10"},"4.0.0-rc.3":{"tag":"4.0.0-rc.3","author":"Toro_Unit","date":"2022-04-16 10:26:40"},"5.0.0":{"tag":"5.0.0","author":"Toro_Unit","date":"2022-09-05 08:43:09"},"5.0.0-rc.1":{"tag":"5.0.0-rc.1","author":"Toro_Unit","date":"2022-08-25 02:32:18"},"5.1.1":{"tag":"5.1.1","author":"Toro_Unit","date":"2023-07-05 03:05:50"},"5.2.0":{"tag":"5.2.0","author":"Toro_Unit","date":"2023-07-24 17:15:37"},"5.2.0-rc.1":{"tag":"5.2.0-rc.1","author":"Toro_Unit","date":"2023-07-13 08:48:56"}},"upgrade_notice":[],"ratings":{"1":0,"2":1,"3":0,"4":1,"5":5},"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2710417,"resolution":"128x128","location":"assets","locale":"","width":128,"height":128},"icon-256x256.png":{"filename":"icon-256x256.png","revision":2710417,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2710417,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2710417,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":{"advanced-posts-blocks\/posts":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","name":"advanced-posts-blocks\/posts","apiVersion":3,"title":"Multiple Posts","description":"Display multiple posts.","icon":"admin-page","textdomain":"advanced-posts-blocks","attributes":{"align":{"type":"string","enum":["center","wide","full"]},"postType":{"type":"string","default":"post"},"postsToShow":{"type":"number","default":5},"offset":{"type":"number","default":0},"order":{"type":"string","default":"desc"},"orderBy":{"type":"string","default":"date"},"ignoreStickyPosts":{"type":"boolean","default":true},"showAllPosts":{"type":"boolean","default":false}},"supports":{"align":["center","wide","full"],"html":false},"category":"widgets","editorScript":"file:.\/index.js"},"advanced-posts-blocks\/post":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","name":"advanced-posts-blocks\/post","apiVersion":3,"title":"Single Post","description":"Display single post.","icon":"text-page","textdomain":"advanced-posts-blocks","attributes":{"align":{"type":"string","enum":["center","wide","full"]},"postType":{"type":"string","default":"post"},"postId":{"type":"number","default":0}},"supports":{"align":["center","wide","full"],"html":false},"category":"widgets","editorScript":"file:.\/index.js"},"advanced-posts-blocks\/children":{"$schema":"https:\/\/schemas.wp.org\/trunk\/block.json","name":"advanced-posts-blocks\/children","apiVersion":3,"title":"Child Posts","description":"Display children of selected post.","icon":"networking","textdomain":"advanced-posts-blocks","attributes":{"align":{"type":"string","enum":["center","wide","full"]},"postType":{"type":"string","default":"page"},"postId":{"type":"number","default":0},"postsToShow":{"type":"number","default":-1},"order":{"type":"string","default":"asc"},"orderBy":{"type":"string","default":"title"}},"supports":{"align":["center","wide","full"],"html":false},"category":"widgets","editorScript":"file:.\/index.js"}},"tagged_versions":["0.1.1","0.1.2","0.1.3","0.1.4","0.1.5","0.1.6","0.2.0","0.2.2","0.2.3","0.3.1","0.3.2","0.3.3","0.4.0","0.5.0","0.5.2","0.6.0","0.7.0","0.7.1","0.7.2","0.8.0","0.8.1","0.8.2","0.8.3","0.8.3-rc.1","0.8.3-rc.2","0.9.0","0.9.0-beta.1","1.0.0","1.0.2","1.0.3","1.1.0-beta","1.1.0-beta2","2.0.0","2.0.0-beta.1","2.0.0-beta.2","2.0.0-beta.3","2.0.0-rc.1","2.0.0-rc.2","2.1.0","2.1.0-rc.1","2.1.0-rc.2","2.1.1","3.0.0","3.0.1","3.0.2","4.0.0","4.0.0-rc","4.0.0-rc.2","4.0.0-rc.3","5.0.0","5.0.0-rc.1","5.1.1","5.2.0","5.2.0-rc.1"],"block_files":[],"assets_screenshots":{"screenshot-3.png":{"filename":"screenshot-3.png","revision":2942719,"resolution":"3","location":"plugin","width":800,"height":840},"screenshot-2.png":{"filename":"screenshot-2.png","revision":2942719,"resolution":"2","location":"plugin","width":800,"height":840},"screenshot-1.png":{"filename":"screenshot-1.png","revision":2942719,"resolution":"1","location":"plugin","width":800,"height":840},"screenshot-4.png":{"filename":"screenshot-4.png","revision":2942719,"resolution":"4","location":"plugin","width":800,"height":840}},"screenshots":{"1":"Blocks","2":"Multiple Posts Block","3":"Child Posts Block","4":"Single Post Block"},"jetpack_post_was_ever_published":false},"plugin_section":[163309],"plugin_tags":[4121,166],"plugin_category":[],"plugin_contributors":[78190],"plugin_business_model":[],"class_list":["post-96121","plugin","type-plugin","status-publish","hentry","plugin_section-blocks","plugin_tags-blocks","plugin_tags-posts","plugin_contributors-toro_unit","plugin_committers-toro_unit"],"banners":{"banner":"https:\/\/ps.w.org\/advanced-posts-blocks\/assets\/banner-772x250.png?rev=2710417","banner_2x":"https:\/\/ps.w.org\/advanced-posts-blocks\/assets\/banner-1544x500.png?rev=2710417","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/advanced-posts-blocks\/assets\/icon-128x128.png?rev=2710417","icon_2x":"https:\/\/ps.w.org\/advanced-posts-blocks\/assets\/icon-256x256.png?rev=2710417","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/advanced-posts-blocks\/trunk\/screenshot-1.png?rev=2942719","caption":"Blocks"},{"src":"https:\/\/ps.w.org\/advanced-posts-blocks\/trunk\/screenshot-2.png?rev=2942719","caption":"Multiple Posts Block"},{"src":"https:\/\/ps.w.org\/advanced-posts-blocks\/trunk\/screenshot-3.png?rev=2942719","caption":"Child Posts Block"},{"src":"https:\/\/ps.w.org\/advanced-posts-blocks\/trunk\/screenshot-4.png?rev=2942719","caption":"Single Post Block"}],"raw_content":"<!--section=description-->\n<p>Add Custom Dynamic Blocks for Render Post and Posts.<\/p>\n\n<h4>Multiple Posts Block<\/h4>\n\n<p>Displays a list of posts.<\/p>\n\n<p>Posts Block filtered post type. (ex. post, page) and filter posts by multiple categories, tags or custom taxonomy terms.<\/p>\n\n<p>Override template by your theme. if <code>template-parts\/blocks\/advanced-posts-blocks\/posts.php<\/code> exists in your theme, replace default view.<\/p>\n\n<h4>Single Post Block<\/h4>\n\n<p>Displays the selected page or single post.<\/p>\n\n<p>Override template by your theme. if <code>template-parts\/blocks\/advanced-posts-blocks\/post.php<\/code> exists in your theme, replace default view.<\/p>\n\n<h4>Child Posts Block<\/h4>\n\n<p>Displays the child posts on the selected page or post.<\/p>\n\n<p>Override template by your theme. if <code>template-parts\/blocks\/advanced-posts-blocks\/children.php<\/code> exists in your theme, replace default view.<\/p>\n\n<h4>Override Template<\/h4>\n\n<p>Support template hierarchy. The templates are searched in the following order.<\/p>\n\n<ol>\n<li><code>template-parts\/blocks\/advanced-posts-blocks\/{Block_Type}\/{Post_Type}-{Style}.php<\/code><\/li>\n<li><code>template-parts\/blocks\/advanced-posts-blocks\/{Block_Type}\/{Post_Type}.php<\/code><\/li>\n<li><code>template-parts\/blocks\/advanced-posts-blocks\/{Block_Type}-{Style}.php<\/code><\/li>\n<li><p><code>template-parts\/blocks\/advanced-posts-blocks\/{Block_Type}.php<\/code><\/p>\n\n<p>{Block_Type} is posts, post or children.<\/p><\/li>\n<\/ol>\n\n<h4>Template variables<\/h4>\n\n<ul>\n<li><code>$class_name<\/code> (string) Block style class names.<\/li>\n<li><code>$query<\/code> (WP_Query) Query for block.<\/li>\n<\/ul>\n\n<h3>5.2.0<\/h3>\n\n<ul>\n<li>Use block.json api version 3.<\/li>\n<li>fix <code>attributes<\/code> parameter to <code>advanced_posts_blocks_posts_query<\/code> filter.<\/li>\n<\/ul>\n\n<h4>5.1.0<\/h4>\n\n<ul>\n<li>Tested on WP 6.2 and PHP 8.2.<\/li>\n<li>add <code>attributes<\/code> parameter to <code>advanced_posts_blocks_posts_query<\/code> filter.<\/li>\n<\/ul>\n\n<h4>5.0.0<\/h4>\n\n<ul>\n<li>Change icons.<\/li>\n<li>Refactor code.<\/li>\n<li>Tested WP 6.0.<\/li>\n<li>Use SSR only for Preview.<\/li>\n<li>Support query for ignore terms.<\/li>\n<\/ul>\n\n<h4>4.0.0<\/h4>\n\n<ul>\n<li>add <code>advanced_posts_blocks_use_default_template<\/code> filter.<\/li>\n<\/ul>\n\n<h4>3.0.1<\/h4>\n\n<ul>\n<li>Child Posts Block: Bug fix for post type selector.<\/li>\n<\/ul>\n\n<h4>3.0.0<\/h4>\n\n<ul>\n<li>Single Post Block: Changed to fetch the post after the keyword is entered.<\/li>\n<li>Optimize code.<\/li>\n<\/ul>\n\n<h4>2.1.0<\/h4>\n\n<ul>\n<li>Multiple posts block: Support menu_order attributes.<\/li>\n<li>Child posts block, Multiple posts block: Re-order query controls.<\/li>\n<li>Refactoring components.<\/li>\n<\/ul>\n\n<h4>2.0.0<\/h4>\n\n<ul>\n<li>Refactoring release.<\/li>\n<li>Drop WordPress 5.5 and PHP 7.2<\/li>\n<li>Single post block: <code>Use ComboboxControl<\/code> for post selector.<\/li>\n<\/ul>\n\n<h4>1.0.3<\/h4>\n\n<ul>\n<li>Taxonomy panel bug fix.<\/li>\n<\/ul>\n\n<h4>1.0.0<\/h4>\n\n<ul>\n<li>Support internal taxonomies. ( <code>publicly_queryable: false<\/code> )<\/li>\n<li>WordPress 5.6-beta-4 tested.<\/li>\n<\/ul>\n\n<h4>0.9.0<\/h4>\n\n<ul>\n<li>Multiple posts block: fix react hooks violation.<\/li>\n<\/ul>\n\n<h4>0.8.3<\/h4>\n\n<ul>\n<li>Multiple posts block: block bug fix.<\/li>\n<li>add <code>block.json<\/code>.<\/li>\n<\/ul>\n\n<h4>0.8.2<\/h4>\n\n<ul>\n<li>Update build task.<\/li>\n<\/ul>\n\n<h4>0.8.0<\/h4>\n\n<ul>\n<li>Add filter <code>advanced_posts_blocks_default_template_path<\/code> .<\/li>\n<li>support <code>$args<\/code> in template.<\/li>\n<li>Tested WordPress 5.5.<\/li>\n<\/ul>\n\n<h4>0.7.2<\/h4>\n\n<ul>\n<li>bug fix for single post block.<\/li>\n<\/ul>\n\n<h4>0.7.0<\/h4>\n\n<ul>\n<li>Allow select hidden post type.<\/li>\n<\/ul>\n\n<h4>0.6.0<\/h4>\n\n<ul>\n<li>Posts Block: Support ignore sticky posts.<\/li>\n<\/ul>\n\n<h4>0.5.0<\/h4>\n\n<ul>\n<li>Separate block script.<\/li>\n<li>Refactoring.<\/li>\n<\/ul>\n\n<h4>0.4.0<\/h4>\n\n<ul>\n<li>use react hooks.<\/li>\n<\/ul>\n\n<h4>0.3.3<\/h4>\n\n<ul>\n<li>Term attribute bug fix.<\/li>\n<li>Term control key fix.<\/li>\n<\/ul>\n\n<h4>0.3.2<\/h4>\n\n<ul>\n<li>attribute bug fix.<\/li>\n<\/ul>\n\n<h4>0.3.0<\/h4>\n\n<ul>\n<li>[Multiple Posts Block] Support offset attribute.<\/li>\n<\/ul>\n\n<h4>0.2.2<\/h4>\n\n<ul>\n<li>Fixed typo.<\/li>\n<\/ul>\n\n<h4>0.2.0<\/h4>\n\n<ul>\n<li>Remove wpautop in template.<\/li>\n<\/ul>\n\n<h4>0.1.6<\/h4>\n\n<ul>\n<li>Default template bug fix.<\/li>\n<\/ul>\n\n<h4>0.1.4<\/h4>\n\n<ul>\n<li>Bug fix.<\/li>\n<\/ul>\n\n<h4>0.1.0<\/h4>\n\n<ul>\n<li>first release.<\/li>\n<\/ul>\n\n<!--section=faq-->\n<dl>\n<dt id='how%20add%20another%20block%20style%20%3F'><h3>How add another block style ?<\/h3><\/dt>\n<dd><p>Register your block style.<\/p>\n\n<pre>register_block_style(\n    'advanced-posts-blocks\/post', \/\/ or 'advanced-posts-blocks\/posts', 'advanced-posts-blocks\/children'\n    array(\n        'name'  =&gt; 'your-style',\n        'label' =&gt; 'Your Style',\n    )\n);<\/pre>\n\n<p>Create template <code>template-parts\/blocks\/advanced-posts-blocks\/post-your-style.php<\/code><\/p>\n\n<pre>if ( $query-&gt;have_posts() ) :\n    while ( $query-&gt;have_posts() ) :\n        $query-&gt;the_post();\n        \/\/ write template tag!\n    endwhile;\n    wp_reset_postdata();\nendif;<\/pre><\/dd>\n\n<\/dl>","raw_excerpt":"Create Blocks filtered by any post type and any categories, tags or custom taxonomy terms.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/96121","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=96121"}],"author":[{"embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/toro_unit"}],"wp:attachment":[{"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=96121"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=96121"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=96121"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=96121"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=96121"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ibo.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=96121"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}