I cannot see the widget in the admin. I have placed the following two files in theme-folder/piklist/parts/widgets directory.
news.php
<?php
/*
Title: News Display Widget
Description: Display the news custom post type in a widget area.
*/
<?php echo $before_widget; ?>
<?php echo $before_title; ?>
<?php echo $after_title; ?>
<?php echo $after_widget; ?>
?>
news-form.php
<?php
piklist('field', array(
'type' => 'text'
,'field' => 'demo_text'
,'label' => 'Title'
,'description' => 'Field Description'
,'value' => 'Default text'
,'attributes' => array(
'class' => 'text'
)
));
?>