Andy's Blog

Web Development Tutorials, WordPress Tricks and Much More

Split a Post Title in Half

Written by Andy on March 7, 2014 | No Comments |CSS Tricks,Wordpress How-To's

In this post I’ll explain how to take a WordPress page or post title, split it in half and style each half differently.

Better WP Security and Contact Form 7 Conflict

Written by Andy on January 30, 2014 | No Comments |WordPress Plugins

Do you use Contact Form 7 on your site? Did your forms stop working in IE and Chrome, but not Firefox? That’s what happened to my contact forms. I’m not totally sure if recent updates caused the issue, but I know they were working correctly when the site was launched a couple of weeks ago.

Site Update!

Written by Andy on January 10, 2014 | No Comments |News

I’ve finally decided to launch my new site. It’s been sitting and sitting for almost 2 years now. I was a little nervous to go to something new since I was doing so well in the search engine results, but it was finally time a total revamp. Take a cruise around and let me know what you think!

WP-E-Commerce Add Tax to Receipt

Written by Andy on October 26, 2010 | No Comments |Wordpress How-To's,WordPress Plugins

Interested in adding the sales tax to your WP-e-Commerce receipts? It wasn’t as easy as I had thought. They don’t record the total tax for each order, so we need to add it up ourselves and add it to both the email receipt and the transaction details screen.

Style WordPress Sub Page Menus

Written by Andy on October 5, 2010 | No Comments |Wordpress How-To's

Here’s a problem I’ve recently encountered while using the wp_list_pages function for a sub-page menu. The problem was that the “current_page_item” class was cascading to all the sub-page elements.

Transparent PNG for Dynamic Background Gradients

Written by Andy on March 31, 2010 | No Comments |CSS Tricks

Here’s a quick little trick I’ve used for a variety of applications. It involves using a transparent png or gif with a gradient to allow you to create dynamic background gradients.

Export Parts of MySQL Table to Excel CSV File Using PHP

Written by Andy on January 28, 2010 | No Comments |PHP Tutorials

This is a quick snippet of code I created to dynamically pull a user-defined query from a MySQL database and export it the a CSV file.

Function to Generate a PHP Random String of Numbers and Letters

Written by Andy on January 8, 2010 | No Comments |PHP Tutorials

Here’s a quick snippet of code that allows you to quickly generate a random string of letters and/or numbers based on the variables you feed into the function.

6 Must Have Plugins for Your WordPress Installs

Written by Andy on January 4, 2010 | No Comments |WordPress Plugins

In my experience with custom WordPress installs, I found myself installing the same plugins over and over. What I’ve done to increase my efficiency of installing WordPress, I took all my most used plugins and dropped them into the plugin folder of my WordPress install package.

Convert a String into a Date with PHP

Written by Andy on September 30, 2009 | No Comments |PHP Tutorials

This problem came up while working with the Allegheny County Property database. They have a field for the sale date of the property, only they’re storing the date like this – 3291982 for 03/29/1982.

Working with Prices in PHP

Written by Andy on August 7, 2009 | No Comments |PHP Tutorials

Take an array of numbers, strip out the dollar sign and format them correctly.

This is useful when you are given prices as varchar or text with the dollar sign already included in the field. We’re going to start with an array of numbers, in this case we’ll use the array(‘$1256.45′,’$5564.75′,’$7895.33’).

How to Exclude a Category from the WordPress Loop

Written by Andy on July 23, 2009 | No Comments |Wordpress How-To's

Here’s the question that was asked:

“Basically I want to take all of the posts in the “Freelance” category and remove them from the main content so that I can link to them from a page instead of including them in the Loop. “

Great Grand Parent ID’s in WordPress

Written by Andy on July 10, 2009 | No Comments |Wordpress How-To's

Have you ever needed to find all the ancestor ID’s of a page in WordPress? If so, you’ve come to the right place. Here’s some quick code to give you up to the great grand parent ID.

Style WordPress Titles Based on Number of Letters

Written by Andy on July 8, 2009 | No Comments |Wordpress How-To's

A common problem that I’ve encountered – how to control dynamic text based on how long it is. In this case I had titles ranging from 10 characters to 25 characters – this includes spaces. The goal is to make them centered regardless of how many letters and spaces are in the title.

Dropshadow on Text Using Absolute Positioning

Written by Andy on July 8, 2009 | No Comments |CSS Tricks

Here’s a quick bit of CSS and HTML to achieve a simple dropshadow on text that uses abosolute positioning. This would work great for titles in WordPress. You can adjust the top and left positioning of the .bottom class depending on the offset of dropshadow you want.

What's the Buzz?

Andy did a tremendous job in developing a new website for our company from scratch. His vision in developing a “state of the art” website for a furniture retailer was key to making our website one of the top sites in our industry. He was tireless in working to develop new ideas and translate them into a working part of our site.

- Paul Sanford
COO, Roomful Express Furniture