Web Development Tutorials


Throughout my career as a web designer and developer I've had to come with new ways of solving particular problems. Here is a series of tutorials to share my experiences and knowledge with our community.


WP-E-Commerce Add Tax to Receipt

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.

Read More »

Posted on October 26, 2010 in Wordpress How-To's,WordPress Plugins .


Style WordPress Sub Page Menus

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.

Read More »

Posted on October 5, 2010 in Wordpress How-To's .


Transparent PNG for Dynamic Background Gradients

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.

Read More »

Posted on March 31, 2010 in CSS Tricks .


Export Parts of MySQL Table to Excel CSV File Using PHP

This is a quick snippet of code I created to dynamically pull a user-defined query from a MySQL database.

Read More »

Posted on January 28, 2010 in PHP Tutorials and has been tagged as , , .


Function to Generate a PHP Random String of Numbers and Letters

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.

Read More »

Posted on January 8, 2010 in PHP Tutorials and has been tagged as .


6 Must Have Plugins for Your WordPress Installs

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.

Read More »

Posted on January 4, 2010 in WordPress Plugins and has been tagged as , .


Convert a String into a Date with PHP

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.

Read More »

Posted on September 30, 2009 in PHP Tutorials and has been tagged as , .


Working with Prices in PHP

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′). Here is the foreach [...]

Read More »

Posted on August 7, 2009 in PHP Tutorials and has been tagged as .


How to Exclude a Category from the WordPress Loop

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. ” Here is the code to exclude an entire category from appearing [...]

Read More »

Posted on July 23, 2009 in Wordpress How-To's and has been tagged as .


Great Grand Parent ID’s in WordPress

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. $current = $post->ID; $parent = $post->post_parent; $get_grandparent = get_post($parent); $grandparent = $get_grandparent->post_parent; $get_greatgrandparent = get_post($grandparent); $greatgrandparent = $get_greatgrandparent->post_parent; [...]

Read More »

Posted on July 10, 2009 in Wordpress How-To's and has been tagged as .


Page 1 of 212

Categories

Services I Offer

About Me

Andy Weigel

My name is Andy Weigel and I'm a web developer and designer in Pittsburgh, PA.

I focus on combining design with technology to build compelling, creative, easy-to-navigate web sites and custom web applications for organizations and businesses of all shapes and sizes. My specialty is WordPress. And most of all, I love what I do!