title: Use the settings API to Redirect to correct options page after save in Wordpress
body: <p>I'm trying to create a new admin page in wordpress for some settings. Ideally, I'd like it to be a top-level menu page, but I'd settle for it being a sub-menu under settings. I've followed all the docs, and I have a page that shows up, and the settings are saved. However, I can't get Wordpress to redirect back to the correct page after hitting save.</p>
  
  <p>I finally simply copied and pasted the code from the Codex into my functions.php: <a href="http://codex.wordpress.org/Creating_Options_Pages" rel="noreferrer">http://codex.wordpress.org/Creating_Options_Pages</a></p>
  
  <p>And I still have the same problem.</p>
  
  <p>The first example redirects to admin.php, which causes a plain white screen while the second example redirects to the main settings page instead of the custom settings sub-page.</p>
  
  <p>Surely there has to be a way to tell Wordpress to redirect to your custom page after saving.</p>
  
  <p>Thanks in advance.</p>