PHPackages                             udhaya0000/cmb2-page-select - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. udhaya0000/cmb2-page-select

ActiveWordpress-plugin

udhaya0000/cmb2-page-select
===========================

Custom field for CMB2 which adds a post-search dialog for searching/attaching other post IDs.

152PHP

Since Mar 30Pushed 6y ago1 watchersCompare

[ Source](https://github.com/udhaya0000/cmb2-page-select)[ Packagist](https://packagist.org/packages/udhaya0000/cmb2-page-select)[ RSS](/packages/udhaya0000-cmb2-page-select/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

CMB2 Page Select field
======================

[](#cmb2-page-select-field)

Custom field for CMB2 which adds a post-search dialog for searching/attaching other post IDs.

Adds a new text field type (with a button), `page_select_text` that adds a quick post search dialog for saving post IDs to a text input.

Example
-------

[](#example)

```
// Classic CMB2 declaration
$cmb = new_cmb2_box( array(
	'id'           => 'prefix-metabox-id',
	'title'        => __( 'Post Info' ),
	'object_types' => array( 'post', ), // Post type
) );

// Add new field
$cmb->add_field( array(
	'name'        => __( 'Related post' ),
	'id'          => 'prefix_related_post',
	'type'        => 'page_select_text', // This field type
	// post type also as array
	'post_type'   => 'post',
	// Default is 'checkbox', used in the modal view to select the post type
	'select_type' => 'radio',
	// Will replace any selection with selection from modal. Default is 'add'
	'select_behavior' => 'replace',
) );
```

###  Health Score

20

—

LowBetter than 16% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/5635ce07a3629226c0e67ee345d24a69d9b7e541072e34d712bfb71a4ff41d56?d=identicon)[udhaya0000](/maintainers/udhaya0000)

### Embed Badge

![Health badge](/badges/udhaya0000-cmb2-page-select/health.svg)

```
[![Health](https://phpackages.com/badges/udhaya0000-cmb2-page-select/health.svg)](https://phpackages.com/packages/udhaya0000-cmb2-page-select)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
