Skip to content

Instantly share code, notes, and snippets.

@sbruner
Last active April 24, 2016 02:21
Show Gist options
  • Save sbruner/ec5be4df638ee9d85e85f1a0b10b0316 to your computer and use it in GitHub Desktop.
Save sbruner/ec5be4df638ee9d85e85f1a0b10b0316 to your computer and use it in GitHub Desktop.
<?php
function my_add_sub_title() {
piklist('field', array(
'type' => 'text'
,'field' => 'text'
,'template' => 'field' // format the field without a label
,'attributes' => array(
'class' => 'large-text'
,'placeholder' => 'Enter subtitle here'
)
));
}
add_action('edit_form_after_title', 'my_add_sub_title');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment