SHOW:
|
|
- or go back to the newest paste.
| 1 | <?php | |
| 2 | /* | |
| 3 | Title: Specialties | |
| 4 | Post Type: provider | |
| 5 | context: side | |
| 6 | */ | |
| 7 | ||
| 8 | ?> | |
| 9 | <div class="wp-tab-panel"> | |
| 10 | - | <?php |
| 10 | + | <?php |
| 11 | piklist('field', array(
| |
| 12 | - | 'type' => 'checkbox' |
| 12 | + | 'type' => 'checkbox' |
| 13 | - | ,'scope' => 'taxonomy' |
| 13 | + | ,'scope' => 'taxonomy' |
| 14 | - | ,'field' => 'provider_specialties' |
| 14 | + | ,'field' => 'provider_specialties' |
| 15 | - | ,'label' => __('Specialties')
|
| 15 | + | ,'label' => __('Specialties')
|
| 16 | - | ,'list' => true |
| 16 | + | ,'list' => true |
| 17 | - | ,'attributes' => array( |
| 17 | + | ,'attributes' => array( |
| 18 | - | 'class' => 'text' |
| 18 | + | 'class' => 'text' |
| 19 | - | ) |
| 19 | + | ) |
| 20 | - | ,'choices' => piklist(get_terms('specialty'), array('slug', 'name'))
|
| 20 | + | ,'choices' => piklist( |
| 21 | get_terms('specialty',
| |
| 22 | array( | |
| 23 | 'hide_empty' => 0 | |
| 24 | ) | |
| 25 | ) | |
| 26 | , array('slug', 'name')
| |
| 27 | ) | |
| 28 | )); | |
| 29 | ?> | |
| 30 | </div> |