Tag Archives: Code

Strip Extra ImageScaler Attribute from Plugin-Generated Code

I am using the ImageScaler plugin for WordPress on a project, and I like what it does, but it adds a non-standards-compliant attribute to images, such as: <img class=”" src=”http://www.example.com/imagescaler/generated-image.jpg” alt=”Example” width=”258″ height=”234″ imagescaler=”http://www.example.com/imagescaler/original-image.jpg” /> To strip imagescaler’s imagescaler attribute, … Continue reading

Posted in WordPress | Tagged , , , , , , , | Leave a comment

How to Display a Random Testimonial or Post in WordPress

Set up a testimonials category — no need for a plugin. There are a couple of plugins designed specifically for testimonials, but I didn’t want to use them; they use their own databases, and don’t keep with WordPress’ simplicity. If … Continue reading

Posted in Code | Tagged , , , , , , , , , | 28 Comments

How to Tell if Your WordPress Widget is Active

Ever wonder if your widget is activated on an external site? Here’s how to find out. When you register a sidebar widget, you use code like this: register_sidebar_widget(array(‘Name of Widget’, ‘class-of-widget’), ‘widget_function’); If you want to check whether the widget … Continue reading

Posted in Web Development, WordPress | Tagged , , , , , , , | 4 Comments

Get medium image size in WordPress

This is for everyone who’s been trying to find out how to get the medium image size of a post attachment in WordPress: You’ve got to send the function the ID you’re trying to get the medium images for. $medium … Continue reading

Posted in Code, WordPress | Tagged , , , | 8 Comments

How I fixed WP-DownloadManager 404 errors

I use LesterChan‘s Download Manager plugin, and it’s great. Good interface, simple purpose.  I recently found out that after upgrading a client’s site to WP 2.5, WP-DownloadManager was no longer working.  I followed the documentation on the plugin website, including resetting … Continue reading

Posted in Code, WordPress | Tagged , , , | 5 Comments

Setting Far Futures Expires in ASP, Using ASP as CSS

I normally don’t work with ASP; I use PHP for my coding. Recently, I had to create a style.css.asp file, and I needed to find how to set a far-futures header in ASP.  Here’s what I found in 5 minutes :

Posted in Code | Tagged , , , | Leave a comment

Building a Real Estate Website in WordPress – Part 1

I am designing and creating a real estate website with WordPress, and I’m going to be writing a few articles that detail how it’s done.  This article will get you started — please leave feedback with any questions or topic … Continue reading

Posted in Code, Design | Tagged , , , , , , , , , | 48 Comments

Optimizing a website for search: Google vs. Yahoo! and MSN

When I think SEO, I think of Google. Why? Is it because Google’s PageRank system determines better websites? Is it because Google’s advertising options are superior? It’s as simple as this: Google gets better results than any other search engine. … Continue reading

Posted in SEO | Tagged , , , , , , , , , , , , | 5 Comments

Exploring and learning: Are you taking alternate routes?

When you first move to a new city, you aren’t familiar with the roads. You buy a map to help guide you, you ask Google how to get you from here to there most efficiently, and you stop and ask … Continue reading

Posted in Code, Design | Tagged , , , , | Leave a comment

Cars and Code – Not all that different

Customizing under the hood I was talking with one of my clients who is a mechanic, and he was telling me about how he used to do a lot of car customization and performance enhancing, and that he really loved … Continue reading

Posted in Code | Tagged , , , , , , , | Leave a comment