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.


  • 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


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


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


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.


May 23, 2021
Exactly what is needed
Read all 1 review

Contributors & Developers

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




  • Enhancement to have Taxonomy Type as an option


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


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


  • Initial Release