{"id":13810307,"url":"https://github.com/CMB2/CMB2-Related-Links","last_synced_at":"2025-05-14T10:32:47.217Z","repository":{"id":57002564,"uuid":"54866462","full_name":"CMB2/CMB2-Related-Links","owner":"CMB2","description":"Custom field type for CMB2 which adds a releated links repeatable group field.","archived":false,"fork":false,"pushed_at":"2016-05-30T07:10:51.000Z","size":10,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-21T06:41:59.659Z","etag":null,"topics":["cmb2","php","wordpress"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CMB2.png","metadata":{"files":{"readme":"README.md","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":"2016-03-28T04:56:33.000Z","updated_at":"2025-02-06T04:17:27.000Z","dependencies_parsed_at":"2022-08-21T14:10:41.466Z","dependency_job_id":null,"html_url":"https://github.com/CMB2/CMB2-Related-Links","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMB2%2FCMB2-Related-Links","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMB2%2FCMB2-Related-Links/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMB2%2FCMB2-Related-Links/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CMB2%2FCMB2-Related-Links/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CMB2","download_url":"https://codeload.github.com/CMB2/CMB2-Related-Links/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250930639,"owners_count":21509719,"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":["cmb2","php","wordpress"],"created_at":"2024-08-04T02:00:50.216Z","updated_at":"2025-05-14T10:32:47.190Z","avatar_url":"https://github.com/CMB2.png","language":"PHP","funding_links":[],"categories":["WordPress Plugins"],"sub_categories":[],"readme":"# CMB2 Related Links\n\nSpecial 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.\n\nThe only required parameter is the `'id'` parameter, though you can override almost all of the arguments by passing them in.\n\nThis field requires the [CMB2 Post Search field](https://github.com/WebDevStudios/CMB2-Post-Search-field).\n\n### Example\n```php\n// Add a related links field.\n$cmb-\u003eadd_field( cmb2_related_links_field( array( 'id' =\u003e 'yourprefix_related_links' ) ) );\n```\n\nIf 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:\n```php\n$translateable = array(\n\t'description' =\u003e __( 'Add links, or select from related content by clicking the search icon.', 'yourtextdomain' ),\n\t'group_title' =\u003e __( 'Link {#}', 'yourtextdomain' ),\n\t'link_title'  =\u003e __( 'Title', 'yourtextdomain' ),\n\t'link_url'    =\u003e __( 'URL', 'yourtextdomain' ),\n\t'find_text'   =\u003e __( 'Find/Select related content', 'yourtextdomain' ),\n);\n$cmb-\u003eadd_field( cmb2_related_links_field(\n\tarray( 'id' =\u003e 'yourprefix_related_links' ),\n\t$translateable\n) );\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCMB2%2FCMB2-Related-Links","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FCMB2%2FCMB2-Related-Links","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FCMB2%2FCMB2-Related-Links/lists"}