I’ll just come out and say it: I write my blog posts in the visual editor. Yes, it may be blasphemy for a developer to do that, but I just don’t care. I like seeing the post I’m writing come to life as I’m writing it. Since I’m such a fan of the visual editor, I’m always looking for new ways to stretch its capabilities without adding a truckload of extra markup to my post. There’s a slightly more detailed story that leads to how I got to writing this particular post,* but that’s not why you’re reading this. You’re reading this because you want to learn about the styles dropdown in the visual editor. Here we go!
WordPress Settings API Tutorial Follow-Up
I received a lot of feedback on my Settings API tutorial (thank you so much!) and a few people found some bugs. There was also confusion on how to reference these options in the theme. Well, I have an updated class file and answers to your questions in this post!
Bolts issue tracker now up and running
I’m now even closer to reaching Bolts 1.0! I’ve gotten some feedback for Bolts Beta, and it’s been very helpful. In the spirit of really squashing every bug and optimizing every feature, I’ve put up an issue tracker site to, well, track the issues.
For now, if you want to submit a ticket, use the contact form on this site.
And for anyone who wants to know—the tracker site is using an older version of the Quality Control theme (back when it was available for free). That theme rocks my socks.
Bolts WordPress Parent Theme: Beta Release
For the past several months, I’ve been working on developing a parent theme to use for Barrett Creative’s upcoming premium themes, as well as for client and personal projects. It’s called Bolts (as in “nuts and bolts”) and it’s meant to make theme development swift and simple. It’s got some cool extras built in, like custom widgets, shortcodes, a contact form, and more. It’s not revolutionary, but I’m excited to release a beta version of it for anyone to use. Hopefully, some people will be true beta testers and give me feedback! That is the point, after all.
Without further adieu, here it is:
[download link="http://alisothegeek.com/wp-content/uploads/2011/03/bolts-1.0b1.zip"]Download Bolts 1.0 Beta 1[/download]
If you do want to give me feedback, contact me through this site. Shortcode examples after the break. Continue reading
New WordPress Sugar for Espresso
Here it is! I finally updated my Espresso sugar for WordPress 3.1. I rewrote the functions list to include every non-deprecated function in the WordPress Function Reference. This includes:
- Multisite functions
- Theme/plugin authoring functions, such as wp_enqueue_script
- Post Format functions
I also revamped the included snippets. These are the snippets that are included in the sugar:
- Loop (now in HTML 5)
- Custom loop (now in HTML 5)
- Register custom menu
- Register custom post type
- Register sidebar
- Register custom taxonomy
- Stylesheet link
- Theme CSS header
On top of all the new stuff, I updated the snippets to conform with WordPress coding standards.
Updated WordPress Sugar in the Works
Before I begin, let me say thank you so much to all the people who have used my WordPress sugar! I feel very honored to have given the WordPress developer community something truly useful.
WordPress 3.0 introduced a ton of new functionality — and a ton of functions and variables to go with it. WordPress 3.1 is bringing a little more with custom post formats. I haven’t updated my WordPress sugar… ever, so it’s time for a serious upgrade.
I’m working on it over the next week or so. You can expect something soon! In the meantime, any suggestions for improving the sugar are more than welcome. Thank you!
Custom Maintenance and Database Error pages in WordPress
Most theme developers know how to make a custom 404 error page—it’s as simple as including a template file in your theme folder. It’s just as easy, however, to customize the maintenance and database error pages that are automatically generated by WordPress. Most WordPress bloggers have seen these by now:
Briefly unavailable for scheduled maintenance. Check back in a minute.
Error establishing a database connection
The maintenance page gets displayed to visitors when WordPress is performing any automatic updates (to core files, themes, or plugins), and the generic database connection message displays for a number of reasons. Regardless, they’re ugly if you don’t do something about them. The key to customizing these is adding files to your wp-content folder.
Continue reading
Extended WordPress Settings API Tutorial, Part 2
In This Article
Download the files (updated June 5, 2011)
This post is based on part 1 of this tutorial, so read it if you haven’t.
We left off with a theme options class, My_Theme_Options, that had all the behind-the-scenes work complete. The next step is the HTML.
Extended WordPress Settings API Tutorial, Part 1
In This Article
The WordPress Settings API has been around for a little while, but I haven’t used it until now. I highly recommend it. It does a lot of work for you and is still flexible enough to create custom-styled options pages (with a little jQuery).
Once you’re done with this tutorial, this is what you’ll have:
This will be a little more complicated than just putting code into functions.php (that’s why it’s an “extended” tutorial). Here we go!
Meet the WordPress Settings API
I’ve been working on my own WordPress theme framework for the past several months, and it’s getting closer and closer to completion every week. A few months ago, after I had finished writing all the code for the framework’s theme options page, I learned of the WordPress Settings API. I initially ignored it because I had just finished writing all this beautiful code, which had taken far too many hours and given me far too many headaches to just abandon it all.
I decided to revisit the Settings API today, and I’m so glad I did! After about 9 hours at the computer, I rebuilt my theme options page using the Settings API, jQuery, and CSS3.
