Offering a powerful theme options page can be a great selling point for your theme, but creating one is not as straightforward as you may think.
In our new course, Guide to Creating a WordPress Theme Options Page, you’ll learn the basics of creating your very own theme options page, and the result will be a set of tools you can use right away in your own theme.
What You’ll Learn
Envato Tuts+ instructor Adi Purdila will take you through the full process of coding a theme options page from scratch.
You’ll start by creating a basic page with a menu, settings section and fields, and then you’ll work on features like image uploads, data sanitizing, and more.
Here are some free lessons from this course, as a preview of what you can expect:
Adding the Administration Menu
The first thing you’ll need to do is create a menu entry that will link to your theme options page. You’ll see how to do that in this video.
Creating a Settings Section and Field
WordPress has something called the “Settings API”. This allows you to create settings, store them in the database, create sections for grouping those settings, and create fields for displaying them. See how it works in this video.
Displaying the Fields
Displaying the fields is pretty straightforward; you have to write the callback function you set in
add_settings_field. You’ll do that in this video.
Start Learning With a Free Trial
You can take our new course straight away with a free 10-day trial of our monthly subscription. If you decide to continue, it costs just $15 a month, and you’ll get access to hundreds of courses, with new ones added every week.
Looking for a shortcut? Check out Whitelabel WordPress Theme & Plugin Options Panel, a state-of-the-art script that allows developers to add quick and easy powerful options to their WordPress theme or plugin. Whitelabel is so easy to use and so fast that is suitable for both experienced developers and beginners. It includes user-friendly options like number sliders, button groups, image groups, select boxes with search, multi-select boxes, and more.
from Envato Tuts+ Code – WordPress http://ift.tt/2pBbVqD