Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6532761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T10:02:37+00:00 2026-05-25T10:02:37+00:00

Frustrated SO regular here: I’m creating a theme-options.php page for a child theme in

  • 0

Frustrated SO regular here:

I’m creating a theme-options.php page for a child theme in WordPress. Here’s the code. The page renders correctly, including: Adding the page link to the correct admin menu, creating and displaying the options page. When I click save, however, it takes me to a 500 (internal server error page).

Using the ‘adminer’ plugin (phpmyadmin) I have looked at the wp_options table, and there are none of the custome settings/fields that I have specified. My best guess at the problem is that the settings aren’t registering properly so when I post the form to options.php it responds with an error because it doesn’t expect those form fields.

I’ve been wracking my brain around this code for a few days now, and am wondering if someone else can take a look at it for me? I would really appreciate a few extra eyes…

Some resources I have tried:

  • http://ottopress.com/2009/wordpress-settings-api-tutorial/
  • http://themeshaper.com/2010/06/03/sample-theme-options/
  • http://codex.wordpress.org/Function_Reference/add_settings_section
  • My settings are not saving in wordpress theme options page (his settings appear empty in db. mine don’t appear at all)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T10:02:38+00:00Added an answer on May 25, 2026 at 10:02 am

    Oh crud,
    It dawned on me after I spent an hour figuring it out that Richard M had given you the answer.

    I created a new paste of your code, cleaned up some: http://pastebin.com/enUa3xme

    I fixed the issue and also added the function add_my_options() and removed the is_admin() wrapper around your admin action hooks since they will only be triggered in the admin area, so they are unnecessary.

    I needed to learn this since I use a half-way-done implementation of this, so even if it isn’t helpful to you, it was worth learning…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm feeling frustrated. I have spent hours looking for a good piece of code
I am getting very frustrated because I cannot seem to figure out why Collections
Im getting frustrated because of OpenDNS and other services (ie: roadrunner) that now always
I've been frustrated by this for the entire weekend, plus a day or two,
I'm getting increasingly frustrated with the limitations and verbosity required to actually commit some
I'm getting increasingly frustrated with Flex's Dictionary (which is really just an array with
I use an sql server regularly and have recently been getting frustrated by the
I am currently teaching myself about various data strutures and am a little frustrated
In building an ASP.NET 3.5 WAP, I'm always frustrated by the feeling that no
I'm getting a little frustrated on a little PowerShell script I'm writing. Basically I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.