Hi Guys, I keep having a problem with my wordpress plugins that give me this error You do not have sufficient permissions to access this page I have read a couple posts around the net but the fix does not apply to my plugin. Any advice or solution would be greatly appreciated. Below is my code that i am using to load my pages. <?php add_action('admin_menu', 'mytheme_add_pages'); function mytheme_add_pages() { /**add_menu_page( $page_title, $menu_title, $capability, $menu_slug, $function, $icon_url, $position );**/ add_menu_page('Basic', 'Basic', 'manage_options', 'mytheme', 'basic_page'); /**add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function);**/ add_submenu_page('mytheme', 'Editor Post', 'Editor Post', 'manage_options', 'Editor Post', 'editor_page'); add_submenu_page('mytheme', 'Banners', 'Banners', 'manage_options', 'Add/Edit Banners', 'banners_page'); } function basic_page() { require_once("../option_module/basic.php"); } function editor_page() { global $wpdb,$ticker_prefix; require_once("../option_module/editor_pick.php"); } function banners_page() { require_once("../option_module/rotating_banner.php"); } PHP:
I found out what was causing my problem. It is because there is a space between the words on the slug parameter.