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]
- how to know if admin is in edit page or post [duplicate]
- How to remove entire admin menu?
- The website cannot display the page
- Set Default Admin Colour For All Users
- How can I target WordPress 3.8 new interface MP6 with CSS?
- Best practices for a Style/CSS based theme options page?
- How do I create my own admin button and theme settings page?
- initial sort order for a sortable custom column in admin
- How to change WordPress default strings?
- Remove ability to access certain admin menus
- Gutenberg “Add Block” button is not active (greyed out), cannot add new blocks
- Reorder plugin items in the admin menu
- Wrong url in sortable column headers & pagination in the admin, when behind a proxy
- Reference external file as a function
- Is it possible to hook AJAX to UPDATE-button?
- Get email address of type Administrator
- Check if user is logged in else login page
- Which hook for processing plugin page form data?
- Calling a shortcode in the backend
- Add tabbed menu to admin page
- Is there a way to have admins that are logged in to wordpress not have to enter the password for password protected pages while browsing the website?
- WYSIWYG – Getting the “link” button from HTML mode in Visual mode
- Error thrown. Cannot create references to/from string offsets
- Is there a reliable way to keep track of how long a WordPress theme has been active?
- How to receive security update notification email?
- Admin page redirect to another admin page
- How can I display/hide certain content based on a Theme Option field?
- How do I remove All and Published if not admin?
- How to disable https from wordpress site?
- Apply permissions per post
- Is there a capability for managing plugin options?
- Where should I hook into admin?
- How to remove wp panel for users
- Admin role not really admin
- Fixed layout for admin section
- Copying WordPress site, HOW about the DB connection?
- How to set a default theme option after installing theme?
- How do I diagnose a plugin resource 404?
- Add menu item to edit specific page
- Does an administrator access allow someone to access to the WordPress database?
- Change Name of Category Heading in New Post
- Load stylesheet on custom admin submenu page
- Disable login on multisite web sites
- Other than save_post any other actions on add / edit post screen?
- Add JavaScript in admin in custom plugin [duplicate]
- Remove iPhone detection on login page
- Dashboard RSS Widget Overhaul
- Possible to show in media library if images are being used as featured images?
- How can all E-mails be sent with BCC copy to Admin?
- How To Create WordPress Dashboard Item
- Login to admin by frontend form?
- How do I add an admin table to my page?
- How to save edited post when submitting form
- Get the selected posts IDs to use in bulk edit AJAX call
- Handle logo text color from admin section
- User interfaces living in the Admin “back end” area
- blank white page in admin, white space hunting?
- WordPress blog code format
- htaccess and htpasswd
- Add custom css class to wp-list-table row for custom post type
- Custom column with post ID not working in CPT