PHPackages                             newcity/acf-flexible-link - 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. newcity/acf-flexible-link

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

newcity/acf-flexible-link
=========================

v2.0.0(1y ago)22.1k[3 issues](https://github.com/newcity/acf-flexible-link/issues)PHPPHP &gt;=5.4.0

Since Jul 17Pushed 1y ago1 watchersCompare

[ Source](https://github.com/newcity/acf-flexible-link)[ Packagist](https://packagist.org/packages/newcity/acf-flexible-link)[ RSS](/packages/newcity-acf-flexible-link/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (1)Versions (11)Used By (0)

Flexible Link Field for Advanced Custom Fields
==============================================

[](#flexible-link-field-for-advanced-custom-fields)

This plugin is an extension for the [Advanced Custom Fields](https://www.advancedcustomfields.com/), version 5.0 or higher. It will do nothing unless the ACF plugin is also installed.

The primary function of the Flexible Link Field is to allow the insertion of either an internal Wordpress post/page, an external URL, or an email address without having to use complicated conditionals or write extra template logic.

How to use
----------

[](#how-to-use)

Install and activate the plugin as you would any other Wordpress plugin, making sure that the ACF Pro plugin is also installed and activated. This will add an entry called "Flexible Link" to the `Field Type` menu when you are creating a new ACF field group.

The Flexible Link field type includes the following settings:

- `Allowed Link Types`: Turn access to different link types on or off in the created field. For example, you may want to enable internal pages and external urls, but disallow e-mail addresses for a particular field.
- `Show link text field`: If enabled, this allows text to be associated with the link. This is particularly useful for buttons.
- `Return Value`: The field can return either an object or a simple string containing a URL. The object contains the following keys:

    - `text`: The text entered in the Link Text field. If `Show link text field` is set to "no," its value will be `false`.
        - `url`: The URL that matches the selected link type. This is also the value that will be returned if `Return Value` is set to `URL only`.
        - `link_type`: The selected link type as a string, *e.g.* 'post', 'url', 'email'
- `Filter Internal Links by Post Type`: If "Internal Post" is one of the allowed link types, this field controls which post types can be selected for that type.

Acknowledgements
----------------

[](#acknowledgements)

This extension was built with the official [ACF Field Type Template](https://github.com/elliotcondon/acf-field-type-template). It borrows a lot of ideas and some code from the [ACF Smart Button](https://github.com/gillesgoetsch/acf-smart-button) extension.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance14

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 73.5% 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 ~327 days

Recently: every ~647 days

Total

9

Last Release

648d ago

Major Versions

v0.2.1 → v2.0.02024-09-20

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/93575?v=4)[NewCity](/maintainers/newcity)[@newcity](https://github.com/newcity)

---

Top Contributors

[![elliotcondon](https://avatars.githubusercontent.com/u/2296425?v=4)](https://github.com/elliotcondon "elliotcondon (36 commits)")[![dboulet](https://avatars.githubusercontent.com/u/208615?v=4)](https://github.com/dboulet "dboulet (5 commits)")[![wonkeythemonkey](https://avatars.githubusercontent.com/u/4974766?v=4)](https://github.com/wonkeythemonkey "wonkeythemonkey (3 commits)")[![davidshq](https://avatars.githubusercontent.com/u/8009774?v=4)](https://github.com/davidshq "davidshq (1 commits)")[![BinaryKitten](https://avatars.githubusercontent.com/u/67553?v=4)](https://github.com/BinaryKitten "BinaryKitten (1 commits)")[![lgladdy](https://avatars.githubusercontent.com/u/213440?v=4)](https://github.com/lgladdy "lgladdy (1 commits)")[![shaunbent](https://avatars.githubusercontent.com/u/608566?v=4)](https://github.com/shaunbent "shaunbent (1 commits)")[![beaucharman](https://avatars.githubusercontent.com/u/1698930?v=4)](https://github.com/beaucharman "beaucharman (1 commits)")

---

Tags

acfadvanced-custom-fieldswordpress-plugin

### Embed Badge

![Health badge](/badges/newcity-acf-flexible-link/health.svg)

```
[![Health](https://phpackages.com/badges/newcity-acf-flexible-link/health.svg)](https://phpackages.com/packages/newcity-acf-flexible-link)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[rainlab/blog-plugin

Blog plugin for October CMS

17158.6k](/packages/rainlab-blog-plugin)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[starcitizentools/citizen-skin

A beautiful, usable, responsive MediaWiki skin with in-depth extension support. Originally developed for the Star Citizen Wiki.

3355.8k](/packages/starcitizentools-citizen-skin)

PHPackages © 2026

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