Title: Lazy Blocks: Select Dynamic Control
Author: janwidmer
Published: <strong>October 23, 2020</strong>
Last modified: March 14, 2025

---

Search plugins

![](https://ps.w.org/lzb-select-dynamic/assets/banner-772x250.png?rev=2405296)

![](https://ps.w.org/lzb-select-dynamic/assets/icon-256x256.png?rev=2405296)

# Lazy Blocks: Select Dynamic Control

 By [janwidmer](https://profiles.wordpress.org/janwidmer/)

[Download](https://downloads.wordpress.org/plugin/lzb-select-dynamic.2.9.1.zip)

 * [Details](https://wordpress.org/plugins/lzb-select-dynamic/#description)
 * [Reviews](https://wordpress.org/plugins/lzb-select-dynamic/#reviews)
 *  [Installation](https://wordpress.org/plugins/lzb-select-dynamic/#installation)
 * [Development](https://wordpress.org/plugins/lzb-select-dynamic/#developers)

 [Support](https://wordpress.org/support/plugin/lzb-select-dynamic/)

## Description

This custom control enhances the great [Lazy Blocks Plugin](https://lazyblocks.com/)
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

## Installation

 * Make sure you use WordPress 5.0.x. As alternative you need to install the
    [Gutenberg plugin](https://wordpress.org/plugins/gutenberg/)
   to use Lazy Blocks.
 * Make sure, you have installed the [Lazy Blocks Plugin](https://lazyblocks.com/)

### Automatic installation

Automatic installation is the easiest option as WordPress handles the file transfers
itself and you don’t need to
 leave your web browser. To do an automatic install
of lzb-select-dynamic, log in to your WordPress dashboard, navigate to the Plugins
menu and click Add New.

In the search field type lzb-select-dynamic and click Search Plugins. Once you’ve
found our plugin you can view details
 about it such as the point release, rating
and description. Most importantly of course, you can install it by simply clicking“
Install Now”.

### Manual installation

The manual installation method involves downloading our lzb-select-dynamic plugin
and uploading it to your webserver
 via your favourite FTP application. The WordPress
codex contains [instructions on how to do this here](https://codex.wordpress.org/Managing_Plugins#Manual_Plugin_Installation).

## Reviews

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-14758/)󠁿

 [hynekk](https://profiles.wordpress.org/hynekk/) August 5, 2022

Thank you for sharing this.

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

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

 [friendrix](https://profiles.wordpress.org/friendrix/) February 17, 2022

Thank you for sharing this plugin, it was very helpful.

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-13953/)󠁿

 [wowthemesnet](https://profiles.wordpress.org/wowthemesnet/) November 11, 2021

Thanks so much for this one!

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

### 󠀁[Great!](https://wordpress.org/support/topic/great-13306/)󠁿

 [cvladan](https://profiles.wordpress.org/cvladan/) May 23, 2021

Exactly what is needed

 [ Read all 4 reviews ](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/)

## Contributors & Developers

“Lazy Blocks: Select Dynamic Control” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ janwidmer ](https://profiles.wordpress.org/janwidmer/)

[Translate “Lazy Blocks: Select Dynamic Control” into your language.](https://translate.wordpress.org/projects/wp-plugins/lzb-select-dynamic)

### Interested in development?

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

## Changelog

#### 2.8.0

 * WP Compatibility up to 6.3.1

#### 2.6.0

 * Add option to conditionally select posts based on a second dynamic select where
   the author can choose post types first

#### 2.4.0

 * Add option to select multiple items for Entity Types `post` | `page` | `taxonomy`
 * changed compatibility to WP version to 6.1.0

#### 2.2.1

 * Fix problem with missing custom post types for entity type `post-type`

#### 2.2.0

 * Add more post types to ignore list, add docs about ignore list
 * changed compatibility to WP version to 5.9.0

#### 2.1.5

 * changed compatibility to WP version to 5.8.2

#### 2.1.4

 * changed minimal WP version to 5.8
 * changed minimal PHP version to 7.2

#### 2.1.0

 * Enhancement to have Taxonomy Type as an option

#### 2.0.0

 * BREAKING: rename options, enhance with “Post Type” option to select a certain
   Post type in your block. Manual Migration needed!

#### 1.1.4

 * Enhancement to offer custom post types and tags / categories as entity

#### 1.0.0

 * Initial Release

## Meta

 *  Version **2.9.1**
 *  Last updated **1 year ago**
 *  Active installations **500+**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **6.7.5**
 *  PHP version ** 7.2 or higher **
 *  [Advanced View](https://wordpress.org/plugins/lzb-select-dynamic/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  4 5-star reviews     ](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/lzb-select-dynamic/reviews/)

## Contributors

 *   [ janwidmer ](https://profiles.wordpress.org/janwidmer/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/lzb-select-dynamic/)