Tag Archives: WordPress Development

WordPress Debt Calculator

Download the plugin from WordPress.org

Add a debt calculator to your WordPress blog

Debt Calculator ScreenshotDo you have a financial blog or a blog about debt, money management, or household spending? Add a free debt calculator to your blog with no coding required.

  • Updating the style: You can update the form’s style by editing the plugin’s debt.css file
  • You can add the calculator to your website’s sidebar by using the shortcode in a text widget
  • Use in combination with the Show Content Only plugin as a pop-up window
Posted in Plugins, WordPress | Tagged , , , , , | 13 Comments

Add Custom Titles for Tags and Categories in WordPress

The Best WordPress SEO Plugin? A combination of two.

All in One SEO Pack (AIOSEO) is the leader in WordPress SEO plugins. It offers great functionality and simple integration into the process of writing a post. AIOSEO is not a perfect plugin, however, because it lacks some very important functionality:

  • Custom category title tags
  • Custom tag title tags
  • Mass editing of page, post, tag and category title tags/slugs

The plugin that has all of the features above (but lacks AIOSEO features) is SEO Title Tag, an imperfect but elegant solution to the list above.  This article shows how to use both plugins and have them combine forces to create a powerful solution for getting custom titles on all your site’s pages.

Posted in SEO, WordPress | Tagged , , , , , , , , , , , , , , | 17 Comments

Save Coding Time by Creating Special-Case Categories in WordPress

Get a list of WordPress categories to sort and exclude them...kind of like fruit!

When you would use excluded categories:

When using WordPress as more of a content management system (CMS) than a blogging platform, there are many things that you need control over. One of them is special-case categories.

  • Frequently asked questions
  • Testimonials
  • Case studies
  • Press releases

When you have a category of posts that you don’t want to have comments, publishing dates, post author, etc., you can define a list of excluded categories. In most cases, you should use Category Templates to achieve this functionality, but that is not always practical or the best option.

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

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','', $content);
	return $content;
}
Posted in WordPress | Tagged , , , , , , , , | Leave a comment

Simple Taxonomies Formatting — Improve the Plugin’s Code Output

Making the Simple Taxonomies WordPress Plugin Semantic

I’ve been using Joost de Valk’s Simple Taxonomies plugin for a couple of projects, and I’ve been very disappointed by the formatting of the terms output code.

When configuring the plugin, you have the option of choosing “Add terms to the end of posts” or “Add terms to the end of excerpts.” If you do, you get a <div> and a couple of spans. Not very semantic. Also, the code uses an #id, instead of a .class, meaning that if you have more than one post on a page with taxonomies, it no longer validates.

Simple Taxonomies uses terms, so let’s make a list of them!

Here’s a way to reformat the code and prevent overwriting in future plugin updates. We’re going to strip the code and use a definition list instead (<dl>). Definition lists in HTML have a term and description; just as a custom taxonomies creates a taxonomy and its terms.

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

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 also wanted to have the testimonials as a category in WP, rather than as a separate plugin. This code will work for any type of category, not just a testimonial.

Here’s how to create a random post item in your sidebar:

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

Get Adjacent Images – More WordPress Functions

Get the adjacent photo, man.

WordPress, just get the adjacent image links. I’ll tell you what to do with them!

WordPress is normally great about providing functions that have a return and an echo version.  In WordPress, if a function has the prefix get_, then it does not echo (print it into the content), but rather returns the result so that it can be saved as a variable, like so:  $example = get_example();

There are some functions that only have echo capability, so I wanted to share my work-around with you all.

Updated image_link functions

  • adjacent_image_link() » get_adjacent_image_link()
  • previous_image_link() » get_previous_image_link()
  • next_image_link() » get_next_image_link()
Posted in Code, WordPress | Tagged , , , , , , , , | 3 Comments

How to tell if your WordPress Plugin or Widget is Activated in WordPress

Check your plugin or widget activation & settings

Ever wonder if your widget or plugin 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 like this (the “class-of-widget” value from above will be used in the code below):

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

Ignite Matchmaking Complete

Ignite Matchmaking is a professional matchmaker in Denver, Colorado. Sheryl Williams, President of Ignite asked Katz Web Design to increase the effectiveness of her website. The Previous Ignite Matchmaking Homepage was not visually interesting, had little information about the matchmaking process, and was not well constructed (using XHTML and CSS).

The new home page has a graphic that outlines the five steps and calls users to action with a simple choice: I am a Man or I am a Woman. The site now has a blog that will entice visitors to stay longer.

New Ignite Matchmaking Home Page

Posted in Web Design Portfolio | Tagged , , , , , | Leave a comment
12