The other day I had a great discussion with a few of my coworkers about improving our Git Commits. After some back and forth, and discussing Sal Ferrarello’s rules for git commits, I decided to create a git commit template that would open up in my editor each time I used git commit in my […]
Get Only Public Post Types In WordPress
Recently I had a situation where I needed to determine if a post type was not one of WordPress’ core types. WordPress has several base post types: Post (Post Type: ‘post’) Page (Post Type: ‘page’) Attachment (Post Type: ‘attachment’) Revision (Post Type: ‘revision’) Navigation menu (Post Type: ‘nav_menu_item’) For example, let’s say that we need […]
Simple Contact Form (Part 1)
Contact forms are used in just about every website out there to allow users to email you directly through an easy form. This form will take the users info, once submitted, format it into a nice email, and send it to an email address we will specify.