julykaz / link-picker-for-cmb2
Link Picker control designed to work with CMB2
Installs: 46
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 7
Type:wordpress-plugin
Requires
- php: >5.2.4
Suggests
- composer/installers: ~1.0
This package is not auto-updated.
Last update: 2025-03-27 21:55:44 UTC
README
Link Picker control designed to work with CMB2
About
Using the Link Picker for CMB2 control, you can choose a link from your WordPress site, or manually enter a link. You can also identify if the link should open in a new window, or not.
Features:
- Easy to integrate with CMB2, just add a type of
link_picker
- Works with repeatable groups
- Works as a repeatable field when
repeatable
is set totrue
- Outputs an array of
text
,url
andblank
when usingget_post_meta
- You are able to split the values of the field into individual parts by setting
split_values
totrue
. You can retrieve the split values by using the ID of the field and appending_text
,_url
and_blank
to the ID when usingget_post_meta
(not compatible if using a repeatable field)
Installation
- Download this repository and unzip it into the folder
link-picker-for-cmb2
- Upload the
link-picker-for-cmb2
folder to the/wp-content/plugins/
directory - Activate the plugin through the 'Plugins' menu in WordPress
- Configure the plugin via the 'Link Picker for CMB2' options page under the WordPress 'Settings' Menu
Changelog
1.0.0 - 11.07.2016 - First stable release.
1.0.1 - 14.07.2016 - Media assets error message fix
1.0.2 - 14.07.2016 - Updated responsiveness of control
1.0.3 - 21.08.2016 - Fixed JS issues (with thanks to sagetopia)
1.0.4 - 21.08.2016 - Control now works if editor not supported by post type
1.0.5 - 23.09.2016 - Fixed a bug where the link was getting added to the main content editor