Title: Theme Option fields not showing
Last modified: August 21, 2016

---

# Theme Option fields not showing

 *  [Shihab Malayil](https://wordpress.org/support/users/shihabmalayil/)
 * (@shihabmalayil)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/theme-option-fields-not-showing/)
 * Hi, This is my theme option link [http://pastebin.com/1NmrB0Kv](http://pastebin.com/1NmrB0Kv).
   why cant i see the fields?.

Viewing 1 replies (of 1 total)

 *  [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * (@labofoz)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/theme-option-fields-not-showing/#post-3920774)
 * First, try setting [debug](http://codex.wordpress.org/Debugging_in_WordPress)
   on and checking out what error messages you’re getting.
 * Anyways, there are several things which strike out at me:
    1) “administrator”
   isn’t a capability, it’s a [role](http://codex.wordpress.org/Roles_and_Capabilities).
   Instead set $capability to “manage_options” (line 17), which only administrators
   can do anyways.
 * 2) $position should be an integer, yet you’re using a string. This may or may
   not be an issue, as I believe PHP auto-converts. Nevertheless, the [Codex](http://codex.wordpress.org/Function_Reference/add_menu_page)
   specifically says use an integer, so change line 25 to:
    `$position = 5;` Notice
   I removed the quotes around 5.
 * 3) Also, position 5 is used for Posts, so for now just try setting $position 
   to 30.123 (yes use a decimal). Rule of thumb is to always use a decimal for $
   position, because otherwise you’ll end up with collisions like this where one
   will hide the other.
 * **In response to future questions you’ll have for “Why is my theme options page
   blank”**
    Your **main_theme_menu_plugin** is all “wrong”. You defined socialSettings()
   inside of it, but you don’t actually call it. So you’ll just get a blank page
   when you go there. Also you have add_action(‘wp_ajax…’) inside this function,
   so you’re settings may or may not save. You’ll need to move the add_action outside
   of the function.
 * But first try getting the menu to display and then try getting the theme options
   page itself to display.

Viewing 1 replies (of 1 total)

The topic ‘Theme Option fields not showing’ is closed to new replies.

## Tags

 * [fields not showing](https://wordpress.org/support/topic-tag/fields-not-showing/)
 * [theme option](https://wordpress.org/support/topic-tag/theme-option/)

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 1 reply
 * 2 participants
 * Last reply from: [Oz Ramos](https://wordpress.org/support/users/labofoz/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/theme-option-fields-not-showing/#post-3920774)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
