{"id":13660289,"url":"https://github.com/ahebrank/ACF-Link-Picker-Field","last_synced_at":"2025-04-24T19:30:44.594Z","repository":{"id":31188307,"uuid":"34748924","full_name":"ahebrank/ACF-Link-Picker-Field","owner":"ahebrank","description":"A new field for Advanced Custom Fields allowing use of standard link picker modal dialog. Now available at https://wordpress.org/plugins/acf-link-picker-field/","archived":false,"fork":true,"pushed_at":"2017-06-08T13:24:25.000Z","size":138,"stargazers_count":21,"open_issues_count":5,"forks_count":5,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-10T14:42:16.167Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"BIOSTALL/ACF-Link-Picker-Field","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahebrank.png","metadata":{"files":{"readme":"readme.txt","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-28T18:39:03.000Z","updated_at":"2017-10-23T12:48:28.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ahebrank/ACF-Link-Picker-Field","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2FACF-Link-Picker-Field","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2FACF-Link-Picker-Field/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2FACF-Link-Picker-Field/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahebrank%2FACF-Link-Picker-Field/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahebrank","download_url":"https://codeload.github.com/ahebrank/ACF-Link-Picker-Field/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250693468,"owners_count":21472267,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T05:01:19.748Z","updated_at":"2025-04-24T19:30:44.291Z","avatar_url":"https://github.com/ahebrank.png","language":"PHP","funding_links":[],"categories":["PHP"],"sub_categories":[],"readme":"=== Advanced Custom Fields: Link Picker Field ===\n\nContributors: BIOSTALL, caalami\nTags: acf, advanced custom fields, link picker, link chooser, acf link picker\nRequires at least: 3.5\nTested up to: 4.8\nStable tag: trunk\nLicense: GPLv2 or later\nLicense URI: http://www.gnu.org/licenses/gpl-2.0.html\n\nAdds an Advanced Custom Field field that allows the selection of a link utilising the WordPress link picker modal dialog\n\n== Description ==\n\nThis add on for the already established Advanced Custom Fields plugin adds a new field type called 'Link Picker' which allows the user to enter a URL, or select from the existing pages. It is a thin wrapper around the link selector included with the WYSIWYG field editor.\n\nThis plugin is forked from the plugin of the same name hosted at https://github.com/BIOSTALL/ACF-Link-Picker-Field. This version is hosted at https://github.com/ahebrank/ACF-Link-Picker-Field and issues and PRs should be submitted there.\n\nNote: Advanced Custom Fields must be installed for this add-on to work.\n\n== Compatibility ==\n\nThis ACF field type is compatible with:\n\n*\tACF 5\n*\tACF 4\n\n*ACF 4 support is deprecated, and new plugin features will generally not work with ACF 4.*\n\n== Installation ==\n\n1. Copy the `acf-link_picker` folder into your `wp-content/plugins` folder\n2. Activate the 'Advanced Custom Fields: Link Picker' plugin via the plugins admin page\n3. Create a new field via ACF and select the Link Picker type\n\n== Usage ==\n\nWhen outputting the link selection on the front end, you will have three object elements available:\n\n*\turl - The URL of the page\n*\ttitle - The title of the link, if entered\n*\ttarget - Will be either a blank string or '_blank', depending on whether the user has ticked the box for the link to open in a new window/tab.\n* postid - Not available as part of wp_link, this is an ajax hack to attempt to look up the post ID of a selected link. This will return 0 if the post ID was not found.\n\nCode example:\n\n`$mylink = get_field('mylink');`\n`var_dump($mylink);`\n\nOutputs:\n\n`array(3) {\n  [\"url\"]=\u003e\n  string(31) \"http://mysite.com/selected/url/\"\n  [\"title\"]=\u003e\n  string(10) \"Link Title\"\n  [\"target\"]=\u003e\n  string(6) \"_blank\"\n  [\"postid\"]=\u003e\n  int 2231\n}`\n\n== Changelog ==\n\n= 1.2.8 =\n* Some additional compatibility checks for ACF 4 (disable post ID lookups to suppress JS errors)\n\n= 1.2.7 =\n* Enqueue wysiwyg assets if needed (thanks, [dmarkowicz](https://github.com/dmarkowicz))\n\n= 1.2.6 =\n* Bugfix: revert setting empty values\n\n= 1.2.5 =\n* Multiple fixes from [Jontis00](https://github.com/Jontis00), including:\n  * Set a default (empty) value for the field\n  * Refactor the post ID lookup\n  * Add sv_SE translations\n\n= 1.2.3 =\n* Make the link class a little more distinctive -- thanks, [dmarkowicz](https://github.com/dmarkowicz)\n\n= 1.2.2 =\n* New handlers for the updated link picker with WP 4.5.\n\n= 1.2.1 =\n* Attempt to add a post ID ($link[\"postid\"]) to the field data\n\n= 1.2 =\n* Automatically update the link title when clicking on a link.  This functionality differs from the WYSIWYG link picker (which assumes highlighted text) but should be consistent with expected behavior of an ACF field.\n\n= 1.1.2 =\n* Add NL translation support from [vjanssens](https://github.com/vjanssens)\n\n= 1.1.1 =\n* Add PT translation support from [alvarogois](https://github.com/alvarogois)\n* Bump compatibility information\n\n= 1.1 =\n* Bump version, preserve _blank target if set from [philmprice](https://github.com/philmprice)\n\n= 1.0.3 =\n* Translation support from [m0n0mind](https://github.com/m0n0mind)\n\n= 1.0.2 =\n* Forked by ahebrank and refactored, updated for compatibility with WP 4.2\n\n= 1.0.1 =\n* Solve bug with repeater fields (credit to Willy Bahuaud http://wabeo.fr/)\n* Solve problem with empty values (credit to Willy Bahuaud http://wabeo.fr/)\n\n= 1.0.0 =\n* Initial Release.\n\n== Upgrade Notice ==\n\n= 1.1 =\nAdds target attribute preservation\n\n= 1.0.3 =\nAdds German translation support\n\n= 1.0.2 =\nAdds WP 4.2+ support\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahebrank%2FACF-Link-Picker-Field","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahebrank%2FACF-Link-Picker-Field","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahebrank%2FACF-Link-Picker-Field/lists"}