Description:
CMB2 Post Search field is a custom field for CMB2 that adds a post-search dialog for searching and attaching other post IDs. It introduces a new text field type called post_search_text, which includes a button and opens a quick post search dialog for saving post IDs to a text input. The field is built for developers who work with CMB2 in WordPress projects and need a way to link posts to each other from within an edit screen.
The field is added through a standard CMB2 box declaration, and it supports several configuration options. The post_type argument sets which post type to search, and it can also be passed as an array. The select_type argument controls how posts are selected in the modal view, with radio or checkbox as options, and it defaults to checkbox. The select_behavior argument determines whether a new selection replaces any existing selection or is added to it, with replace and add as the available values, and it defaults to add.
The project is hosted on GitHub under the CMB2 organization, where it is written in PHP for WordPress. The repository includes example code, screenshots of the field display and the search modal, and a composer.json file. Developers who want a more general way to attach posts or other custom post types with a drag and drop interface may consider the CMB2 Attached Posts Field instead.
The vendor’s own page for CMB2 Post Search field has the full details.
Main Features of CMB2 Post Search field:
- Adds the post_search_text field type, a text field with a button.
- Opens a quick post search dialog for searching and attaching other post IDs.
- Saves selected post IDs to a text input.
- Accepts a single post type or an array of post types through the post_type option.
- Controls the selection control shown in the modal view through the select_type option, with checkbox as the default.
- Can replace any existing selection with the selection made in the modal through the select_behavior option, which defaults to add.
EffectIO members receive updates through the managed update channel. Install the EffectIO Connect plugin on your site and it handles activation, updates and licensing automatically.
Need a dashboard view of all your EffectIO assets? The EffectIO Dashboard shows what is installed, what is licensed, and what has an update available.
The 0.2.5 version stays on this update channel for the subscription year.











Reviews
There are no reviews yet.