Category Archives: Code

SEO Randomizer: Save the Value of Your SEO'd Links

Search engines attribution link value is falling for SEOs and web designers.

Update: Now use the SEO WordSpinner plugin to implement this concept.
Use the get_seo_spin() PHP function in your theme’s footer.php file.

Footer links are dropping in SEO value

How to stay relevant while getting great links

ArrayAs a web designer and SEO, I place links in the footers of most of my designs. Clients don’t mind (I always request the link), and it’s a high-quality link. Most small web design and SEO companies do.  Footer links have become very spammy, however, and sites try to stuff as many links there as possible.

SEOmoz has an article about footer link optimization and claims that

Footer links may be devalued by search engines automatically
Check out the evidence – Yahoo! says they may devalue footer links, Bill Slawski uncovers patents suggesting the same and anecdotal evidence suggests Google might do this (or go further) as well. Needless to say, if you want to make sure your links are passing maximum value, it’s wise to avoid the footer (particularly the footer class itself).

The era of the PageRank-passing footer links are coming to an end. The search engines have a good reason for devaluing the links — but how can we get the juice back?

Let’s consider the following issues:

  • Footer links are being devalued by search engines
  • Footer links have a low click-through rate
  • Having the same link on every page makes the link less valuable
  • Google doesn’t like spam
Posted in Code, SEO, WordPress | Tagged , , , , , , , , , , , , , , | 12 Comments

Nofollow SEO for your WordPress Functions

Link Condom

Pretty crude idea of nofollow, isn't it?

While working on a recent website, I became frustrated by the lack of nofollow support in many WordPress functions.  Make that, most WordPress functions.

There are a few WP functions that I wanted to add nofollow to, so here’s a list and a download link:

Posted in Code, SEO, WordPress | Tagged , , , , , , , , , , , , , , | 23 Comments

Simple Vertical Align Plugin for jQuery

Everything in it's right place.
Sometimes you may want to vertically align a block item, but the CSS-only vertical aligning methods don’t make you feel clean.  Personally, I hate having to style items as a table/table cell to get them to vertically align in Internet Explorer.

jQuery to the rescue.  Using a jQuery vertical align snippet as my base code, I modified it to be a jQuery plugin that will allow you to use the function in the jQuery chain.

Posted in Code, jQuery | Tagged , , , , , , | 82 Comments

How to View All (or more) Posts at once in WordPress Administration

Here’s the deal: I wanted to be able to temporarily see all the posts at once in the WordPress Administration, so I went into the wp-admin folder, and poked around, and became frustrated: it wasn’t that simple!

Go to /wp-admin/includes/post.php and scroll to line 517. You will see
wp("post_type=post&what_to_show=posts$post_status_q&posts_per_page=15&order=$order&orderby=$orderby");

Change the posts_per_page value to whatever you want it to be. Note: deleting the code will not let you view all posts.

WARNING: I don’t ever like to modify the default WordPress files, because when they get updated, you’ll be screwed. This is a only a temporary fix. It will not last if you update WordPress.

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

How to turn off captions in WordPress 2.6

Having fun with new technology

Turn off da captions, turn off da funk!

I’ve found that many who found my previous article about removing caption from the All In One SEO Pack are interested in disabling the WordPress 2.6 captions altogether. This is very simple to do.

Futureproof way to disable captions

From Otto:

Add this to your theme’s functions.php file:
add_filter('disable_captions', create_function('$a','return true;'));

[Edited: Updated with final solution from Otto]. Thanks to King Rat and others who’ve contributed to solving this problem.

If you have any questions, revisions, or…comments, leave a comment!

Posted in Code | Tagged , , , , , | 38 Comments

Remove shortcode from All in One SEO Pack in WordPress 2.6

Starting in WordPress 2.6, they’ve added captions to images that are automatically generated and use the Shortcode API to make it happen.  One side effect is that All in One SEO Pack isn’t set up to strip the caption from the automatically generated META tags, so you may end up with in your description.

Thanks to a WordPress Trac entry, I got the right regular expression to strip all shortcode in All in One plugin.

Posted in Code | Tagged , , , , , , , , , , , | 18 Comments

Creating a Real Estate Website in WordPress — Part 2

Real estate website screenshot

ArrayIf you find this article helpful, please share it, or Digg it!

In Part 1 of Building a real estate website in WordPress, you learned about a plugin called FreshPost that we used to set up the basic structure of your real estate website.  Using this article, you will be able to display a single listing page that has all the content your real estate website will need.

Posted in Code, Design, Tutorial | Tagged , , , , , , , | 22 Comments

Tableless, accessible, nearly validating osCommerce — Rewriting the beast

Rocky Mountain Baggers

osCommerce accessibility stinks

ArrayosCommerce default installation is a huge mess for accessibility. Every piece of code that the platform spits out has endless tables and poorly coded HTML — finding your way through the code is like trying to clear brush.

The simple solution to osCommerce accessibility is to install the Simple Template System and put together a XHTML/CSS’ed out template.  That only solves one part of the problem, however, because your wonderful template is going to be wrapping around a whole slew of undesirable code.

Over a year ago, a client of mine wanted an osCommerce website. I wanted to create a masterpiece of accessibility. I tackled osCommerce head-on and re-wrote most of the code that creates the HTML.  It was a nightmare, but I created a nearly validating eCommerce website with osCommerce.

The experience was so scarring that I haven’t yet written about it :-) Nearly every file was affected, so upgrading it would be a nightmare, but it’s truly an effort of love.

KWD presents: a nearly validating, tableless osCommerce website

Posted in Code, Web Design Portfolio | Tagged , , , , , , , , | 9 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 = wp_get_attachment_image_src($picture->ID, 'medium', false);
$med_url = $medium[0];
$med_width = $medium[1];
$med_height = $medium[2];

There are a lot more things you can find out by analyzing wp-includes/gallery.php.

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