[theme-reviewers] Tutorial: Incorporating the Settings API in WordPress Themes

Chip Bennett chip at chipbennett.net
Fri Feb 18 12:57:30 UTC 2011


Thanks!

I was worried about the length of the article, but it didn't seem to make
sense to split it into multiple posts.

Do you think it would be useful to do a more slimmed-down follow-up post,
that leaves out some of the advanced topics, like Settings page tabs,
contextual help, etc.?

Chip

On Fri, Feb 18, 2011 at 6:51 AM, Rahul Bansal <rahul.bansal at rtcamp.com>wrote:

> Great article... :-)
>
> Added to - http://make.wordpress.org/themes/about/resources/ (comments
> section)
>
> Timing is good as well! 10 pages gives a lot to explore on weekend! ;-)
>
> --
> Rahul Bansal | Founder & CEO | rtCamp Solutions Pvt. Ltd.
> Skype: rahul286 | Twitter: @rahul286 | Web: http://rtcamp.com/
>
>
>
> On Fri, Feb 18, 2011 at 9:11 AM, Chip Bennett <chip at chipbennett.net>wrote:
>
>> All,
>>
>> I have just published a tutorial: Incorporating the Settings API in
>> WordPress Themes <http://bit.ly/hHjo6n>:
>>
>>  While others such as Otto<http://ottopress.com/2009/wordpress-settings-api-tutorial/>
>>  and Ozh<http://planetozh.com/blog/2009/05/handling-plugins-options-in-wordpress-28-with-register_setting/> have
>> done yeomen's work in explaining how to implement the Settings API, I have
>> not yet come across anything that really put everything together, and
>> explained the process and implementation from beginning to end, in a way
>> that even the less-experienced Theme developers (like me) could easily
>> understand.
>>
>> This tutorial will attempt to fill that gap, by providing examples of
>> current (as of the pending release of WordPress 3.1) best-practice
>> implementation, not merely of the Settings API, but of Theme Options
>> implementation as a whole, including:
>>
>>    - Registering options in the database as a single options array
>>    - Initializing default options
>>    - Creating a single Theme Settings page (with tabs)
>>    - Defining settings page sections and fields
>>    - Validating and white-listing user-input form data
>>    - Adding Settings Page contextual help
>>    - Enqueueing custom CSS for the Settings page
>>    - Implementing settings in the Theme template files
>>    - Enqueueing front-end CSS
>>
>>
>> Please give it a read; I hope it is helpful. Also, any feedback, comments,
>> corrections, criticism, etc. is welcome, so please comment!
>>
>> Chip
>>
>> _______________________________________________
>> theme-reviewers mailing list
>> theme-reviewers at lists.wordpress.org
>> http://lists.wordpress.org/mailman/listinfo/theme-reviewers
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wordpress.org/pipermail/theme-reviewers/attachments/20110218/20739329/attachment.htm>


More information about the theme-reviewers mailing list