PHPackages                             jtsternberg/cmb2-related-links - 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. jtsternberg/cmb2-related-links

ActiveLibrary

jtsternberg/cmb2-related-links
==============================

Custom field for CMB2 which adds a releated links repeatable group field.

v0.1.1(9y ago)108421GPL-2.0+PHPPHP &gt;=5.2

Since Mar 28Pushed 9y ago3 watchersCompare

[ Source](https://github.com/jtsternberg/CMB2-Related-Links)[ Packagist](https://packagist.org/packages/jtsternberg/cmb2-related-links)[ Docs](https://github.com/jtsternberg/CMB2-Related-Links)[ RSS](/packages/jtsternberg-cmb2-related-links/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

CMB2 Related Links
==================

[](#cmb2-related-links)

Special CMB2 Field that allows users to add a related links repeating field group. This is not a standard field type, but instead a function you use in combination with `CMB2::add_field()`. Each link can be populated with existing WordPress content by clicking on the search button.

The only required parameter is the `'id'` parameter, though you can override almost all of the arguments by passing them in.

This field requires the [CMB2 Post Search field](https://github.com/WebDevStudios/CMB2-Post-Search-field).

### Example

[](#example)

```
// Add a related links field.
$cmb->add_field( cmb2_related_links_field( array( 'id' => 'yourprefix_related_links' ) ) );
```

If you are looking to bundle this field in your plugin or theme, you will need to pass the second parameter which is an array of all the translateable strings:

```
$translateable = array(
	'description' => __( 'Add links, or select from related content by clicking the search icon.', 'yourtextdomain' ),
	'group_title' => __( 'Link {#}', 'yourtextdomain' ),
	'link_title'  => __( 'Title', 'yourtextdomain' ),
	'link_url'    => __( 'URL', 'yourtextdomain' ),
	'find_text'   => __( 'Find/Select related content', 'yourtextdomain' ),
);
$cmb->add_field( cmb2_related_links_field(
	array( 'id' => 'yourprefix_related_links' ),
	$translateable
) );
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity49

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.

###  Release Activity

Cadence

Every ~63 days

Total

2

Last Release

3635d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/204f41ec695703a1363f27b8e65667efbb491e78a15f5dba772bfce88a7a277b?d=identicon)[jtsternberg](/maintainers/jtsternberg)

---

Top Contributors

[![jtsternberg](https://avatars.githubusercontent.com/u/1098900?v=4)](https://github.com/jtsternberg "jtsternberg (8 commits)")

---

Tags

cmb2phpwordpresswordpressmetaCMB2

### Embed Badge

![Health badge](/badges/jtsternberg-cmb2-related-links/health.svg)

```
[![Health](https://phpackages.com/badges/jtsternberg-cmb2-related-links/health.svg)](https://phpackages.com/packages/jtsternberg-cmb2-related-links)
```

###  Alternatives

[webdevstudios/cmb2-user-select

Special CMB2 Field that allows users to define an autocomplete text field for users

211.3k1](/packages/webdevstudios-cmb2-user-select)[jtsternberg/shortcode-button

Tinymce and Quicktag buttons (and modals) for outputting shortcodes. Built to work with CMB2.

781.3k1](/packages/jtsternberg-shortcode-button)

PHPackages © 2026

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