Like the blog? Get the book »

Monthly archives: June 2009

Archive page 1 of 1
Spam Link Injection Hacked (and How I Hopefully Fixed It)

Spam Link Injection Hacked (and How I Hopefully Fixed It)

Just recently my other blog CSS-Tricks was hacked. I first found out by a very helpful reader emailing me a screenshot from the mobile version of my site.

WordPress Configuration Tricks

WordPress Configuration Tricks

Many WordPress users know the wp-config.php file as the key to the WordPress database. It is where you set the database name, username, password, and location (among other things like security keys, database prefix, and localized language).

Here’s a screenshot of wp-config.php (aka the WordPress configuration file) for those who may not yet be familiar:

Use Google-Hosted JavaScript Libraries (…still the Right Way)

Use Google-Hosted JavaScript Libraries (…still the Right Way)

I previously posted on how to include jQuery in your WordPress theme the Right Way. That is, to use the wp_register_script function to register the script first. It’s literally a one-liner in your header.php or functions.php file, but by default, it loads the internal version of jQuery that ships with WordPress.

The xmlrpc.php File and Site Security

The xmlrpc.php File and Site Security

Included in the header.php template of most WordPress themes, there is an important hook called wp_head. This essential hook enables WordPress functions to output content to the browser in the <head></head> area of your web pages1.

For example, in newer versions of WordPress, wp_head() enables WordPress to output the following three lines to your theme’s <head></head>:

Add/Remove Buttons from WordPress Write Panel

Add/Remove Buttons from WordPress Write Panel

One of the features of WordPress 2.8 was a “increased speed of the Admin area”, which cited compressed JavaScript files as the reason for the speed increase. One of those files that was compressed was the file quicktags.js in the /wp-includes/js/ directory.

Create a Stunning Lightbox-Style Random-Post Header Gallery

Create a Stunning Lightbox-Style Random-Post Header Gallery

In this tutorial, we’re going to take advantage of two of WordPress’ most powerful features, get_posts() and custom fields, to create a stunning random lightbox-style header gallery for your post images.

Displayed before the standard post loop, this lightbox gallery will randomly display the images that are associated with your posts while also providing a descriptive title link to the post itself. Here is a graphical representation that will help us visualize the concept:

Free Theme: WP Typo

Free Theme: WP Typo

A big thanks to everyone for being supportive of the website launch for Digging Into WordPress. As a way of saying thank you, and to celebrate our launch, I’d like to present to you a brand new free WordPress theme for you to download. It’s called WP Typo. You can view the demo here and download the theme here. It was designed by myself, then coded through WP Coder (as part of this review), and a little additional coding again my myself.

Edit Your Options from the WordPress Admin

Edit Your Options from the WordPress Admin

Ever needed to update an option in your database without having to log into your control panel or phpMyAdmin? WordPress provides you with an easy way to view, edit and update your database options table (wp_options) by simply opening the following URL in your browser:

Welcome!

Welcome!

Welcome everyone! Chris and I are very excited to finally have this site launched. This site is going to serve as an outlet for us both to share WordPress related articles, be it news, tips and tricks, best practices, in-depth explanations, new plugins, reviews, and anything else WordPress related! Feel free to explore the archives already, there are a few good ones in there already. We have plenty of stuff lined up too, but right away we’d like to ask:

Version 2.8 is Now Available!

Version 2.8 is Now Available!

Just minutes ago, WordPress Version 2.8 was released! As usual, there is a LOT of great new functionality and features, although much of it affects developers and back-end types more than it does front-end designers or casual bloggers/users of the WP Admin Area.

Redirect Dead-End Category, Search and Tag URLs

Redirect Dead-End Category, Search and Tag URLs

Beginning with version 2.5, WordPress automatically handles many types of canonical redirects. A good example of this may be seen by typing your blog address into your browser both with and without the www prefix. If you are using WordPress 2.5 or better, one of these versions of your blog URL will be immediately redirected to the other. The same type of automatic redirect may be seen for several other non-canonical URL variations, and is handled via PHP deep in the WordPress core.

Including jQuery in WordPress (The Right Way)

Including jQuery in WordPress (The Right Way)

If you want, you can just download jQuery, put it on your server and link to it from your header.php file in the <head></head> section. But that can cause you grief. For one thing, some plugins use the jQuery library, and they are going to load it as well. This can cause problems. How was your plugin to know you already had it loaded?

Custom WordPress Title Tags

Custom WordPress Title Tags

By default, WordPress provides a decent way of including <title></title> information for your posts, pages, and various archive views. This is important for usability and for better SEO. Most themes ship with some sort of title functionality baked right in, but for those that don’t, you can add titles easily using WordPress’ wp_title tag. Using wp_title(), we can specify several useful parameters, including:

© 2009–2024 Digging Into WordPress Powered by WordPress Monzilla Media shapeSpace