I created some custom Shortcodes and Filters for a site as a plugin and I'm trying to add an admin menu for some options using the following code:
/* Create Admin Menu and Options Submenu */
function td_options_page() {
?>
<div class="wrap"><?php screen_icon(); ?>
<h2>Topeka Design Extensions for WIBW</h2>
<p>Options Page</p></div>
<?php
}
function td_register_admin_panel() {
add_menu_page('Options', 'Topeka Design', 'manage_options', 'topeka-design', 'td_options_page');
}
add_action('admin_menu', 'td_register_admin_panel');
/* Create Help Submenu */
function td_help_page() {
?>
<div class="wrap"><?php screen_icon(); ?>
<h2>Topeka Design Extensions for WIBW</h2>
<p>Help</p></div>
<?php
}
function td_register_help_submenu_page() {
add_submenu_page( 'topeka-design', 'Help', 'Help', 'manage_options', 'td-help-page', 'td_help_page' );
}
add_action('admin_menu', 'td_register_help_submenu_page');
However the first sub-menu displayed is "Topeka Design" and not "Options".
I've been through the codex numerous times and I'm not seeing what I'm doing wrong. A little help would be appreciated.