Carbon Field Url Picker #7 in Content & Publishing
Add an URL Picker field to Carbon
★ 14stars
70krelease downloads
≈10active sites
19forks
Install
The author publishes release zips, so WP-CLI can install straight from GitHub:
wp plugin install https://github.com/iamntz/carbon-fields-urlpicker/releases/download/v3.0.12/carbon-fields-urlpicker.zipFrom the readme
Carbon Field: urlpicker
(this is an extension of Carbon Fields plugin)
You can install it via composer:
If you install it from the source, you need to make sure that you also run npm install and npm run production in order to have assets compiled.
Return values:
The field will return an associative array with the following values:
Example
Registering A Field
This goes in your functions.php as with other Carbon Fields fields. The only difference is that the type is urlpicker.
Using Field Values
Use preview in a complex (repeater) field via setheadertemplate
The value of the field is an object of this shape:
Which means you can use it inside a -setheadertemplate() call and do some basic text alteration:
Note that the blank field will return 0 or 1, depending on whether the checkbox is ticked next to "Open link in a new tab".
Found this useful?
You can get hosting (and receive $10 credit!) or donate.
Read the full README on GitHub →
Releases
| Tag | Published | Asset | Downloads |
|---|---|---|---|
| v3.0.12 | Aug 31, 2026 | carbon-fields-urlpicker.zip | 2 |
| v3.0.10 | Mar 10, 2023 | carbon-fields-urlpicker.zip | 70,144 |
| v3.0.6 | Mar 10, 2023 | carbon-fields-urlpicker.zip | 6 |
| v3.0.5 | Mar 9, 2023 | carbon-fields-urlpicker.zip | 99 |
| 3.0.0 | Feb 16, 2020 | — | — |
| 2.0.0 | Feb 16, 2020 | — | — |
| 1.0 | Aug 30, 2018 | — | — |
Active-site estimate ≈10 comes from the median of recent superseded releases. Method.