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, add the following into your functions.php file: add_filter(‘the_content’, ‘strip_imagescaler’); function strip_imagescaler($content) { $content = preg_replace(‘/imagescaler=”(.*?)”.?/s’,”, […]

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 possible, the best way to work with WordPress is to use it’s built-in functionality. I […]

How to Tell if Your WordPress Widget is Active

00b3a79760f387afbe4386f5316a838b

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 is activated (you may want to for a variety of reasons), you can do it […]

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 = wp_get_attachment_image_src($picture->ID, ‘medium’, false); $med_url = $medium[0]; $med_width = $medium[1]; $med_height = $medium[2]; There are […]

How I fixed WP-DownloadManager 404 errors

picture-103

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 the permalink structure, but nothing worked. For some reason the re-write wasn’t working properly: all […]

Building a Real Estate Website in WordPress – Part 1

c2e73c7d03052b119db21b17d41e24de

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 requests for the next installment. Real estate using WordPress Part 2 is now available! A little background — […]

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

picture-73

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. The major search engines often don’t agree Optimizing websites for search is frustrating sometimes. The […]

How to "Hack" VonageMe™

Integrating Call Me Link into Your Website VonageMe™ is a new service from the VoIP service Vonage. If you have service from Vonage, you should have a VonageMe account. How to set up click to talk using Vonage Vonage uses a simple form to enable the calling feature. Instead of using their form, you can […]