Aliso the Geek

A coder in love with WordPress

Blog

Mastering the TinyMCE Styles Dropdown in the WordPress Visual Editor

TinyMCE Styles dropdown menuI’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!

Continue reading

Blog

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.

Visit the Themejack Tracker

Update 6/4/11: We’re setting up Themejack at Zendesk right now, so the old issue tracker is down.

 

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.

Blog

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

Blog

New WordPress Sugar for Espresso

Update 11/15/11: The sugar is now compatible with Espresso 2! Download version 2.0 below. (Thank you for this, Diego!)
Update 3/7/11: I’ve updated this to include several functions that were missing from autocomplete. Download version 1.3 below.

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.

Download WordPress Sugar for Espresso v2.0

Blog

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!

Blog

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

Blog

Extended WordPress Settings API Tutorial, Part 2

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.

Continue reading

Blog

Extended WordPress Settings API Tutorial, Part 1

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:

Theme Options screenshot

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!

Continue reading

Blog

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.

Continue reading