PHPackages                             andrew/attached-post-field-cmb2 - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. andrew/attached-post-field-cmb2

ActiveWordpress-plugin[Utility &amp; Helpers](/categories/utility)

andrew/attached-post-field-cmb2
===============================

Post to post relation field for CMB2

0121PHP

Since Apr 3Pushed 10y agoCompare

[ Source](https://github.com/andrewmclagan/attached-post-field-cmb2)[ Packagist](https://packagist.org/packages/andrew/attached-post-field-cmb2)[ RSS](/packages/andrew-attached-post-field-cmb2/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

Attached Posts Field CMB2
=========================

[](#attached-posts-field-cmb2)

Custom field for [CMB2](https://github.com/WebDevStudios/CMB2).

Create a dropdown feild listing a post type for creating a post-to-post style relationship. Saves the post ID into a custom meta field.

Example:

```
			'ticket_id' => [
				'id' 			=> 'ticket_id',
				'label'			=> 'Ticket Type',
				'description'	=> '',
				'class'			=> [''],
				'input_class'	=> ['attendee-ticket_id'],
				'placeholder'	=> 'Select your ticket',
				'type'			=> 'post_type',
				'options'		=> [
					'post_type'	=> 'product',
					'query'		=> [
						''
					],
				],
				'required'		=> true,
			],

```

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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/d2309163519ed0bc5df5b00472f2d9d052d4f6cf207c65bf2885d53b2e6af350?d=identicon)[andrewmclagan](/maintainers/andrewmclagan)

---

Top Contributors

[![andrewmclagan](https://avatars.githubusercontent.com/u/1073259?v=4)](https://github.com/andrewmclagan "andrewmclagan (3 commits)")

### Embed Badge

![Health badge](/badges/andrew-attached-post-field-cmb2/health.svg)

```
[![Health](https://phpackages.com/badges/andrew-attached-post-field-cmb2/health.svg)](https://phpackages.com/packages/andrew-attached-post-field-cmb2)
```

###  Alternatives

[emotality/tawk-laravel

A tawk.to chat widget for Laravel.

5223.1k](/packages/emotality-tawk-laravel)[anhskohbo/u-convert

Chuyển đổi qua lại giữa các bảng mã Unicode, VNI, TCVN3... của Việt Nam

271.3k](/packages/anhskohbo-u-convert)

PHPackages © 2026

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