TaylorLovett

Custom Contact Forms 1.0 Released

July 18, 2010 by Taylor Lovett

My new WordPress plugin, Custom Contact Forms 1.0, has finally be released.

Custom Contact Forms is a WordPress plugin for handling and displaying custom web forms; insert the provided code in any page, post, category, or archive in which you want a web form to show. This plugin allows you to create fields with a variety of options and to attach them to specific forms you create.

Definitely allows for more customization than any other WordPress contact form plugin out there today. The greatest part of this plugin is the comprehensive admin page which allows you to manage fields, forms, and tons of customizable options in one place! Also comes with a web form widget to drag-and-drop in to your sidebar. It has been tested on WordPress version 2.7.1 and up. Give it a try on your blog today; it’s free!

Comment Template Customization in WordPress

June 24, 2010 by Taylor Lovett

Today I was working on my blog and started styling comments.php in my WordPress theme – this wasn’t too difficult but still took me a couple hours to sift through PHP/Wordpress jargon to find the HTML/CSS code I was looking for. Before long I wanted to style the actual comments posted by users. To my dismay I learned the code for user comments is not in the comments.php theme file but rather in the comments-template.php file in the WordPress wp-includes/ folder. Bummer.

Customizing the WordPress wp-includes/comments-template.php file is extremely complicated, even to a veteran PHP programmer, and after messing with it for 2 hours I started searching Google for a guide. I found out through various guides that the wp_list_comments() function called in comments.php can take a callback function as a parameter that will use a custom comment function as opposed to the WordPress default. By using the callback parameter to point to your own function, you can really take control of the WordPress comments style and structure.

I found a great guide that will take you step by step through creating your own comment function for the wp_list_comments() function to callback.

WordPress Comment Templates Customization

Also, for background information on wp_list_comments() and a full list of it’s parameters:

Function Reference for wp_list_comments()