• Resolved albedo0

    (@albedo0)


    Hello,

    I’m developping a plugin for WP and i have a problem with my option page.

    When i submit the form to the options.php page, the options.php doesn’t redirect to origin (my plugin’s options page)… Instead, the page options.php is loaded…

    I tried to add this just after the form tag but there is no difference…
    wp_nonce_field('update-options');

    Any idea ?
    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Dion

    (@diondesigns)

    Did you call register_setting() to register your options page, and settings_fields() to add the required input values to your options page?

    Thread Starter albedo0

    (@albedo0)

    Yes, i call resgister_settings(), add_settings_field(), settings_fields(), do_settings_sections() and the form looks like i want…

    • This reply was modified 7 years ago by albedo0.
    Dion

    (@diondesigns)

    Does the name attribute of the INPUT tags on your options page match the option names you defined when calling register_setting()? Is the correct option name being used when you call settings_fields()?

    Thread Starter albedo0

    (@albedo0)

    Yes i double checked everything !

    Thread Starter albedo0

    (@albedo0)

    I finally resolve my problem by starting back from scratch…
    And i don’t know what happened…

    Thanks for your help !

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Options.php don’t redirect to origin’ is closed to new replies.