You’re adding the menu page using the “administrator” role. Is the account you’re using an administrator?
Note:
1) You should be using an appropriate capability, rather than a user role. Generally, the appropriate capability for editing Theme options is edit_theme_options.
2) There is a known bug with WordPress, in that currently, manage_options is required for the form submit on options.php, which is used by Theme settings pages. This is only an issue for user roles below editor, and will hopefully be fixed in 3.2 or 3.3.
3) If this is a public Theme, you should be using add_theme_page() (which adds a submenu to the “Appearance” menu), rather than add_menu_page() (which adds a top-level menu page).
4) That tutorial is considerably out of date.
Related Posts:
- This CSS Stuffing Works, But Is This A Good Practice?
- Settings API – easiest way of validating checkboxes?
- Uploading files in admin panel?
- Read only capability for custom post in admin area
- WordPress Admin back-end – advanced options page?
- How To View Site from Non-Logged-In User’s Perspective
- Modify CSS via Theme Control Panel
- Editor role cannot save custom theme options
- Is it safe to post form data via Ajax to the settings api? Am I missing something?
- wp_dropdown_pages() in theme admin page
- How can I restore admin capabilities?
- What determines whether admin toolbar is shown to a logged-in user?
- How can I show the contents of only a few users
- How do you set up a WordPress blog with multiple authors to allow something like StackExchange’s “community wiki” feature?
- Settings API not saving values to database
- Admin cannot publish
- Admin option sidebar count
- WordPress Remove Submenus
- Problem with Settings API: changes are not saved after submit
- Add Custom Script in Other Plugin’s Options page
- Accessing variable from admin panel?
- How can I POST or GET to the same admin page from which I am POST-ing or GET-ing
- Passing dynamic options from backend to frontend
- WordPress custom admin functions security
- current_user_can(‘administrator’) not working in custom login
- Show global Message in User Profiles with admin only Input field in WordPress Backend
- Redirect admin 403 “Cheatin uh?” admin pages
- “sufficient permissions” error for admin after duplicating WP database to new install
- [Multisite]How can I update custom blog option?
- Give admin_menu permission to specific users
- Call require_once form admin page with checkbox
- Cannot access wp-admin after installing SSL – user capabilities not being set
- Get Link of Page Selected through a Select Field in Custom Admin Page
- How can I create multiple different admin roles with their own capabilities
- My code for creating an admin option doesn’t work
- Capability to read/edit page in wp-admin only for administrators
- send information from the thickbox image uploader second tab
- Pull Random Images From Options Page [closed]
- Woo Commerce Settings for Check-out Form [closed]
- What are the standard admin CSS id/class tags?
- Admin Ajax is returning 0
- Add custom column to Users admin panel
- wp_verify_nonce vs check_admin_referer
- Add a Separator to the Admin Menu?
- How to determine whether we are in add New page/post/CPT or in edit page/post/CPT in wordpress admin?
- how to know if admin is in edit page or post [duplicate]
- Modal window from within WordPress admin
- Where in WP can I check history or log of updates of plugins etc?
- get_option() vs get_theme_mod(): Why is one slower?
- Adding a custom admin page
- How does admin-ajax.php work?
- How to remove entire admin menu?
- How do I remove dashboard access from specific user roles?
- How can I speed up my WP admin section?
- How to pass parameters to admin_notices?
- Admin: very slow edit page caused by core meta query
- if admin is logged in
- Search posts by ID in admin
- How to Change the Default Home Page for the WordPress Dashboard?
- Setting admin edit panels & metaboxes positions and visibility for ALL users and admins
- Find out which moderator approved comment?
- The website cannot display the page
- How To Remove WordPress Version From The Admin Footer
- Sort pages in loop by admin’s page attributes order field?
- Edit “thank you for creating with WordPress” in version 3.3.1
- Hide other users’ posts in admin panel
- Set Default Admin Colour For All Users
- Editor Styles and Typekit
- WordPress admin stylesheet
- Is it possible to create a WordPress tour? V3.3.1
- Securing Admin Accounts – Username Discovery
- is_admin() returns true when using admin-ajax.php from front end script
- How to save dismissable notice state in WP 4.2?
- How do I optimize a custom post type admin page with 25,000 posts?
- Settings API – adding setting fields dynamically?
- Disable Media Uploads to non Admin Users
- How do I load a CSS style into WordPress admin area only?
- Allowing admin-ajax.php to receive “application/json” instead of “x-www-form-urlencoded”
- Can an admin check passwords of registered users?
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Notification that the admin is online
- How To Add New Option Types To Option Tree?
- Does wordpress create activity, update logs?
- Best practices for a Style/CSS based theme options page?
- sort child pages on admin
- How-to make the admin area mobile friendly [closed]
- How to remove list view from media library?
- How to disable the “Your site has updated to WordPress x.y.z” admin email?
- Load plugin scripts and styles only on plugin page
- Plugin to remove Admin menu items based on user role?
- How to obtain the user ID of the current profile being edited in WP-Admin?
- 3.3: How do you hide the new dashboard welcome panel?
- Add my own button next to “Screen options” and “Help” in the admin
- WP List Table custom quick edit box – post meta data missing and columns change on submit
- Are there any action like ‘init_frontend’
- Should I use is_admin() inside ‘admin_init’ hook callback
- Custom admin email for new user registration
- Send Admin Emails to Multiple Email Addresses
- Restrict Admin Capabilities in MultiSite
- How do I set up the defualt page icon for admin menu?