I'm pretty new to wordpress (been using wordpress for a week now) and took over a site from a colleague of mine . He partially created a plugin to input "Specials" onto the site. At the moment, the fields that it shows is "Title", and "Body" with a featured image. This is what the code looks like:
public function create_specials_type()
{
register_post_type('specials',
array(
'labels' => array(
'name' => __('Specials'),
'singular_name' => __('Specials')
),
'public' => true,
'has_archive' => true,
'supports' => array(
'title',
'editor',
'thumbnail',
'revisions'
),
'show_ui' => true,
'show_in_menu' => true
)
);
add_theme_support('post-thumbnails',
array(
'specials'
)
);
}
I want to modify this so that it shows a page (on the admin side) that looks like this:
Special Name (input) Description (textarea) Items (textarea) Cost (input) Image (image)
I'm using WP 3.9.2 with a custom theme. Can anyone assist me with writing this plugin or at least provide a link to a good resource that will help me do this?