WordPress Bits

Hacking WordPress. Keeping the bits together.

Archive for the ‘Options’ Category

Tip #6 : Enhancing WordPress administration

Posted by Karthik Kastury on September 26, 2007

This tip has been written by Karthik Kastury from dailyApps.net. dailyApps showcases the best of the Apps for different platforms and is a must read for all you software junkies out there. You can also find a host of tips to improve your productivity with review of various services and apps.

If you are a long time WordPress user like me, you surely know the obvious limitations that the WordPress backend has. There are far too many distractions in the Compose Section where you write the posts. Presence of Controls that you never use could become a nightmare to manage so it would be best if you would just remove them and use a stripped down version of the Compose Screen to manage your workflow better.

  • Get Rid of the Clutter

As I mentioned before there are far too many items in the compose screen that I normally don’t use. There is stuff like Password Protection, Excerpt, Custom Fields, Discussion Options, Bookmarklets, Author controls etc. which I am sure majority of WordPress Users don’t really use. So if you are one of them go ahead and add Clutter Free to your ever growing list of WordPress plugins.

Once you have activated Clutter Free go the Users Sections and select all the options that you need. Save the settings and “Boom!” as Steve Jobs would say, your Compose screen now loads a tad faster.

  • Disable the Rich Text Editor

When it comes to the Rich Text Editor things are definitely easy for the average to publish a new post. But in case you are a power user like me then you would want to Disable the Rich Text Editor Screen that has a few annoyances, such as being slow and standing in the way of embedding code provided by Youtube and other services.

I would put my money on the Simple Text Editor that is extremely powerful in terms of what it can do. To disable the Rich Text Editor follow these steps. Go to the Users Section in your admin. Scroll to the bottom and uncheck the option that Says “Use the visual rich editor when writing”. The only Downside is that you will have to learn some basic HTML before you can use the Rich Text Editor.

  • Make QuickTags Smarter

If you are long time WordPress user you will know how useful Quicktags really are (Quicktags are those buttons with tags at the top of the editor). Just about anything is possible with Quicktags. The default WordPress install comes with a few quick tags like <strong>, <li>, <ul> etc. But you might want to add a few more tags to this list so that you don’t have to type them over and over again while you are writing your post. I have some more tags in my Write screen like <span> which I regularly use.

If all the talk above sounded a little too geekish for you. Here is the simplified version of what you have to do. Just download the WP-AddQuickTag plugin and install it. Select Add Quicktags under the Options menu and add all the tags that you wish to include. Note that you need to have Rich Text Editor disabled to make Quicktags work for you.

  • Install Greasemonkey

If you are a Firefox User you definately should install Greasemonkey. There are many scripts that can improve your workflow. One of the scripts that I am using is Akismet Auntie Spam which changes the skin of the Akismet spambox page for WordPress admins and allows to download all spam at once, compress spam to make it more scanable and completely compresses obvious spam. Turns checking spam into a 10 minute per week activity.

  • Install WP-Admin Tiger 3.0

The default layout of the WordPress Admin can be confusing at times. It shows all signs of being extremely cluttered. You have to click through a maze of buttons to do something, and the most important thing surely is that it is not really good to look at. In case you are one of those who have got bored of the default layout for WordPress Admin then its time for you to download WP-Admin Tiger 3 that completely changes the look and feel of the WordPress admin.

If you like this post please consider subscribing to the dailyApps feed. You will find dailyApps an enjoyable read. And yeah make sure you tell me if these tips have helped you or not..

Posted in Menu, Options, Plugins, Themes, WordPress, WordPress Tips | 33 Comments »

Adding options to WordPress plugins

Posted by Leonid Mamchenkov on August 15, 2007

Most WordPress plugins out there are simple things, fixing or changing one thing at a time.  But there are also examples of more complex things, like e-commerce and banner management, advanced anti-SPAM control, more flexible content and user management, etc.  One of the common things between those “advanced” plugins is that they almost always provide a user with a way to configure them – a screen with options.

In this post, we’ll see how to create plugins which integrate into WordPress options administration.

Read the rest of this entry »

Posted in Documentation, Menu, Options, Plugins, WordPress | 55 Comments »

WordPress Options follow-up

Posted by Leonid Mamchenkov on August 12, 2007

After the “Quick access to WordPress options” post got published, I’ve got plenty of questions, most of which could be rephrased as one of the two:

  1. What does each displayed option mean?
  2. How can I delete unused options?

While a comprehensive description of each option is yet to be done, I thought I’d do another post with a few links that might clear up some confusion.

Read the rest of this entry »

Posted in Database, Options, Plugins, WordPress | 5 Comments »

Automating WordPress customizations – the install.php way

Posted by Leonid Mamchenkov on August 10, 2007

In “Automating WordPress customizations – the plugin way” we looked at how to change a whole bunch of thing in one go by having our own plugin.  The plugin approach can save a lot of time, but it does not actually give any control over the installation process.

Often we want to interfere with the way things are.  For example, upon successful WordPress installation you find a web site with one post (“Hello World!”), one page (“About”), and a test comment to the first post.  Also, there is a category “Uncategorized”, and “admin” user, and a few other things in the database, which are not so obvious (for example, user roles, such as Administrator, Editor, and Subscriber).

There are also a few things, which are happening during the installation process itself.  For example, a random password for the administrator is generation, and email is sent to the administrator’s address with credentials and new site details.  As handy as it is for a friend’s new blog, there are many situations when we don’t want this done, or want it done differently.

WordPress has a way to control installation flow via a custom install.php file, which saves you from all the problems of core files editing.  In this post, we’ll see how to use this feature and what can actually be done with it.

Read the rest of this entry »

Posted in Database, Options, WordPress | 31 Comments »

Automating WordPress customizations – the plugin way

Posted by Leonid Mamchenkov on August 9, 2007

If you installed WordPress more than two times, you know the drill. Download the latest version, unzip or untar, copy config-sample.php into config.php, edit config.php, upload files to your web host, visit new WordPress URL, click “Next Step” a couple of times, while submitting blog name and administrator’s email. After all is done, login with username “admin” and provided random password, go to Options menu, and set things the way you want them to be. Then upload and activate chosen plugins, and then switch theme to something you’ve spent some time searching for or designing.

Overall, the process is very simple and straight forward. And there are rumors that it will be even simpler in upcoming versions of WordPress. It’s all nice and good. But there is something that only you can make better.

If you installed WordPress more than two times, and by now we know you did, chances are you have a certain way of configuring things. You probably use the same administrator’s email. Or want to use a pre-defined password, not a randomly generated one, because you seriously can’t remember random passwords for those 20 test WordPress installations just on your laptop. Now, going through Options, setting things the same every time is boring.

There are, of course, better ways. In this post we’ll see how to automate this task with a plugin. In one of the near future posts we’ll see how to do even better with a custom install.php file.

Read the rest of this entry »

Posted in Options, Plugins, WordPress | 35 Comments »

Quick access to WordPress options

Posted by Leonid Mamchenkov on August 7, 2007

One of the first things that you probably check right after upgrade to a new WordPress version is the Options menu in the administration interface. Is there something new? Are there more ways that WordPress can be tweaked and tuned now? Can I … Anyway, I don’t have to tell you about it. You know.

But what you probably don’t know is that there is a quick way to see all WordPress options on one screen. Even those that aren’t accessible through the Options menu interface. And not only that, but you can even edit all those options at once.

To access the page with all options, go to your administration interface, and append options.php to the URL, so that it looks something like http://domain/blog/wp-admin/options.php .

All WordPress Options on a single screen

We will come back one day to this topic to see how this can be useful (hint: plugin development). Until then remember that it is pretty easy to break and destroy your WordPress installation buy editing these options directly. You should stick to the regular interface of the Options administration. Be warned.

Update: Obviously, I left out the most interesting part – how to do a cleanup of old options, left by plugin installations. All these options are stored in wp_options table in your WordPress database.  You can use your favorite MySQL administration tool (be that mysql command or PHPMyAdmin or something else) to remove the rows which you are totally sure you don’t need.  You can either use “DELETE FROM wp_options WHERE option_name = ‘some_option’” SQL statement, or a bit safer version – “SELECT option_id,option_name FROM wp_options WHERE option_name = ‘some_option’” to find out the ID of the option, and then “DELETE FROM wp_options WHERE option_id = XX” (substitute XX with option ID that you find in the previous query).  Note that these SQL queries assume that the prefix of your WordPress tables is “wp_”.  You should change table names in the queries accordingly, if you use a different prefix.

Posted in Options, WordPress | 56 Comments »