Viewing 1 replies (of 1 total)
  • First, try setting debug 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. 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 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.