-
-
Save beatelite/eecbbd5b301ac62583b9245af5547278 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Title: Featured Image(s) | |
Post Type: piklist_demo | |
Order: 40 | |
Priority: default | |
Context: side | |
Collapse: true | |
Tab: All | |
Flow: Demo Workflow | |
*/ | |
?> | |
<p class="piklist-demo-highlight"> | |
<?php _e('With Piklist you can easily replicate the WordPress Featured Image field, with an added bonus. Piklist allows you to use multiple featured images.', 'piklist-demo');?> | |
</p> | |
<?php | |
piklist('field', array( | |
'type' => 'file' | |
,'field' => '_thumbnail_id' // Use this field to match WordPress featured image field name. | |
,'scope' => 'post_meta' | |
,'options' => array( | |
'title' => __('Set featured image(s)', 'piklist-demo') | |
,'button' => __('Set featured image(s)', 'piklist-demo') | |
) | |
)); | |
piklist('shared/code-locater', array( | |
'location' => __FILE__ | |
,'type' => 'Meta Box' | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment