Skip to content

Instantly share code, notes, and snippets.

@beatelite
Created July 24, 2018 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beatelite/eecbbd5b301ac62583b9245af5547278 to your computer and use it in GitHub Desktop.
Save beatelite/eecbbd5b301ac62583b9245af5547278 to your computer and use it in GitHub Desktop.
/*
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