Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewmclagan/attached-post-field-cmb2
Single post to post relation field for CMB2 (Wordpress Plugin)
https://github.com/andrewmclagan/attached-post-field-cmb2
Last synced: 23 days ago
JSON representation
Single post to post relation field for CMB2 (Wordpress Plugin)
- Host: GitHub
- URL: https://github.com/andrewmclagan/attached-post-field-cmb2
- Owner: andrewmclagan
- License: gpl-2.0
- Created: 2016-04-03T03:33:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-04-03T03:49:42.000Z (over 8 years ago)
- Last Synced: 2024-04-14T15:47:33.869Z (7 months ago)
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Attached Posts Field CMB2
==================Custom field for [CMB2](https://github.com/WebDevStudios/CMB2).
Create a dropdown feild listing a post type for creating a post-to-post style relationship. Saves the post ID into a custom meta field.
Example:
````
'ticket_id' => [
'id' => 'ticket_id',
'label' => 'Ticket Type',
'description' => '',
'class' => [''],
'input_class' => ['attendee-ticket_id'],
'placeholder' => 'Select your ticket',
'type' => 'post_type',
'options' => [
'post_type' => 'product',
'query' => [
''
],
],
'required' => true,
],
````