WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Option fields not displaying (2 posts)

  1. kristarella
    Member
    Posted 2 years ago #

    Hi,

    I'm rewriting my Thesography plugin and changing the name...
    I was wondering if a more skilled eye could help me figure out why my plugin option inputs are not showing up on my plugin settings page.

    The relevant code (or what I hope is enough to show you) is http://pastebin.com/i7sr4ncx

    The settings page itself shows and all the section titles and descriptions are showing. It is only the fields themselves that aren't displaying.

    I've checked for any errors with get_settings_errors() and wp_debug. Both come up empty. I've also checked that the arrays that I'm looping through are correct and printing them in a section is fine. Just nothing from the field callbacks are showing.

    Thanks for any time and help you can give!

  2. kristarella
    Member
    Posted 2 years ago #

    I found the problem... the "page" parameter is described as being the page slug of the options page in the codex (http://codex.wordpress.org/Function_Reference/add_settings_field), but actually it is whatever is in do_settings_sections as Otto described (http://ottopress.com/2009/wordpress-settings-api-tutorial/).

Topic Closed

This topic has been closed to new replies.

About this Topic