Advanced Posts Blocks

설명

Add Custom Dynamic Blocks for Render Post and Posts.

Multiple Posts Block

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

Single Post/Page Block.

Override template by your theme. if template-parts/blocks/advanced-posts-blocks/post.php exists in your theme, replace default view.

Children Posts Block

Children Posts Block.

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.

Credits

스크린샷

  • Blocks
  • Multiple Posts Block
  • Child Page Block
  • Single Post Block

블록

이 플러그인은 3(을)를 제공합니다.

advanced-posts-blocks/posts
Advanced Posts Blocks
advanced-posts-blocks/post
Advanced Posts Blocks
advanced-posts-blocks/children
Advanced Posts Blocks

후기

2020년 March 28일
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テンプレート編集と同じように、投稿や固定ページのリスト表示をカスタマイズできます。 これで固定ページと投稿のサムネイル画像の表示/非表示を、ブロックの中でコントロールできました。すんばらしい!
2019년 January 10일
I wanted this!
모든 5 평가 읽기

기여자 & 개발자

“Advanced Posts Blocks”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“Advanced Posts Blocks”(이)가 2(으)로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “Advanced Posts Blocks”(을)를 번역하십시오.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록RSS로 구독하십시오.

변경이력

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

  • [Multiple 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.