Archive

Author Archive

Change your WordPress domain quickly with Linux, MySQL, and sed

August 15th, 2010 Chris K No comments

You have no idea how hard it was to refrain from using the command ‘sed’ in a totally ridiculous homophoned title. Have you found yourself wanting to change the domain on an established WordPress installation, or even trying to replicate many times over the same exact WordPress database on a different domain? Yeah, me too. I’ve found while doing plug-in development, it helps to have the same database information copied over when I start with a new branch. Luckily, Linux comes to the rescue with the sed command. It’s a 3 step process. Export your source/current database. Search and replace with sed, and then import the database. Here’s a step by step for you.
Read more…

Categories: Tips

How To: Remove the version from WordPress

August 14th, 2010 Chris K No comments

Ok, you’ve read this title and thought, “Why would I want to remove the version from WordPress…in fact, what does he even mean!?”. By default, WordPress (since version 2.5+) includes the version of WordPress you are using in the HTML code of your site, and does not have an option to remove it.

If you view the source code of your site after you’ve loaded it up in your favorite browser you’ll see a line like so:

<meta name="generator" content="WordPress 3.0">

Read more…

Categories: Tips

AdSense, WordPress, and You

August 11th, 2010 Chris K No comments

Ever wonder why the ads that Google AdSense decides to show for your blog post or site content doesn’t quite match up with what you were aiming for? Well it’s not surprise that the answer is simple, the ads are selected by a computer. Yeah, no duh right? The problem with computers doing all the work is, they don’t have the ability to distinguish context, importance, or even content as a whole. They can only look at the words you type and compare with a database that it has waiting with hundreds of possible ads. What does this mean for you? I’m glad you asked.

Analogies are like your history professor…

…They can get long winded and boring. Getting relevant ads from any automated ad provider service starts with your writing style. Do you sculpt your posts or pages with heavy analogies? If you do, you might be your own worst enemy. The analogy, while very useful in getting a human to understand your context, is essentially a site crawler’s nightmare. It has no clue that your post is about your actual topic and instead notices a large amount of time spent on the topic that is your analogy. If you are going to try and use analogies to get your point across, do it quickly and concisely.
Read more…

Categories: WordPress