Already got some help and are narrowing everything down. Well I feel very stupid. I forgot to actually call the them_options function forth. To do so, all I had to do was add_action('init', 'theme_options'); which I knew already, I just kept missing it.
Another problem occurred with the save button not working so I've posted a new question on it here: http://wordpress.stackexchange.com/questions/104734/theme-options-save-button-is-not-working
I don't mean to rely on them for help but I've been struggling with it for a few hours now and are stuck.
In the meantime, I'm taking written notes on the source code from this tutorial: http://wp.tutsplus.com/tutorials/creative-coding/how-to-integrate-the-wordpress-media-uploader-in-theme-and-plugin-options/
These are some of the functions I've learned about:
- http://codex.wordpress.org/Function_Reference/add_option
- http://codex.wordpress.org/Plugin_API/Action_Reference/after_setup_theme
- http://codex.wordpress.org/Function_Reference/add_theme_page
- http://codex.wordpress.org/Plugin_API/Action_Reference/admin_menu
- http://codex.wordpress.org/Function_Reference/_e
- http://codex.wordpress.org/Function_Reference/settings_errors
- http://codex.wordpress.org/Function_Reference/settings_fields
- http://codex.wordpress.org/Function_Reference/do_settings_sections
- http://codex.wordpress.org/Function_Reference/register_setting
- http://codex.wordpress.org/Function_Reference/add_settings_section
- http://codex.wordpress.org/Function_Reference/add_settings_field
That's it for today.
No comments:
Post a Comment