334

professional dilettante

Adding an options page for your theme

Great article http://blog.themeforest.net/wordpress/create-an-options-page-for-your-wordpress-theme/ on how to create an options page for your theme.  Also explains how to use the options once they’ve been saved to the options table in your database. **Note** If wordpress blows up after you add this stuff to your functions.php file, DO NOT PANIC. It’s ok. Track the error by doing [...]

Great article http://blog.themeforest.net/wordpress/create-an-options-page-for-your-wordpress-theme/ on how to create an options page for your theme.  Also explains how to use the options once they’ve been saved to the options table in your database.

**Note**
If wordpress blows up after you add this stuff to your functions.php file, DO NOT PANIC. It’s ok. Track the error by doing the  following in your terminal.

[ ~/ ]$ cd /Applications/MAMP/logs/
[ /Applications/MAMP/logs]$ ls -l
apache_error_log
mysql_error_log
php_error.log
[ /Applications/MAMP/logs]$ tail -f php_error.log

This lets you tail your php error log to see what’s going on. You may have copied some non-php/html text directly from the tutorial on the web page, if so you’ll probably want to comment that out. Or maybe you didn’t close php or html tags somewhere.

Leave a Reply

Required fields are marked with an asterisk (*), you may use these tags in your comment: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Spam protection by WP Captcha-Free

Most Recent Post

It’s been a long time, I shouldn’t have left you, part 1 …

But now I’m back.All official like.I do social stuff again.I see my friends.I’m moving into my own place again.And all that adult shit.

Categories

Content © professional dilettante
Proudly powered by WordPress
Theme designed by Artisan Themes

Entries (RSS)
Comments (RSS)

22 queries.
0.487 seconds.