plugin-icon

Lazy Blocks: Select Dynamic Control

제작자: janwidmer·
lazy-blocks custom control to offer a dynamic select containing wordpress posts, pages or categories
등급
5/5
버전
2.9.1
활성화된 설치 항목
500
최근 업데이트일
Mar 14, 2025
Lazy Blocks: Select Dynamic Control

This custom control enhances the great Lazy Blocks Plugin and can be used in blocks to offer the WordPress Author to choose either wordpress posts, pages or categories.

Features

  • The custom control dynamically renders a select with options based on the chosen entityType
  • Available entity types are
    • Post Type
    • Taxonomy Type
    • Post (Default or Custom post types)
    • Page
    • Taxonomy (Tags, Categories, Custom Taxonomy)
  • The select options can be restricted to use a certain entry as parent

Restrictions

Select Multiple Restrictions

  • The option “Select Multiple” is only available for the entity type Post / Pages / Taxonomy

Max Item Restriction

The custom control is using the getEntityRecords method.

  • This method can load a maximum of 100 entities and render them as dropdown options
  • When choosing the entity type Page, depending on the number of pages you have, the first time, the call might take a while, as the whole page object get’s loaded
  • To use a custom taxonomy type, make sure to activate the REST option in the register_taxonomy function by adding 'show_in_rest' => true,
  • Parent Entity Restriction does only work for Pages / Categories / Custom Taxonomies, as other Entity Types (e.g. Posts / Tags) cannot be nested
  • For the entityType post-type, an ignore list excludes all wordpress related post types:
    • pages, media, blocks, menu-items, navigation, templates, template-parts, lazyblocks, lazyblocks_templates

Usage

You can use the custom control exactly how you use normal controls for lazy blocks

무료Business 요금제에서
설치하면 WordPress.com 서비스 약관서드파티 플러그인 약관에 동의하게 됩니다.
테스트된 버전
WordPress 6.7.4
이 플러그인은 다운로드할 수 있으며 에서 사용할 수 있습니다.