
After a few months in the works I’m happy to announce Custom Metaboxes and Fields for WordPress version 0.9 is out and ready for consumption. [Read more...]
WordPress Consultant and Genesis Developer

After a few months in the works I’m happy to announce Custom Metaboxes and Fields for WordPress version 0.9 is out and ready for consumption. [Read more...]
Excluding a category (or categories) from the WordPress search results is easy peezy, however, that doesn’t stop most of the snippets I’ve found from doing it wrong.
<?php
add_filter( 'pre_get_posts', 'ja_search_filter' );/** * Exclude category 7 from search results. * * @since ?.?.? * @author Jared Atchison * @link https://gist.github.com/1300302 * * @param WP_Query $query Existing query object * @return WP_Query Amended query object */function ja_search_filter( $query ) {
if ( $query->is_search && !is_admin() ) $query->set( 'cat','-7' );
return $query;
}If you are like me, you often want to control what template file WordPress uses. Some of the methods I’ve seen around the internet try to use template_redirect. Others are even worse and employ sticking tons of conditionals inside WordPress template files (eg category.php).
Well I am here to tell you there is a much easier way. It’s fairly unknown and sparsely documented. It’s the template_include filter. [Read more...]
UPDATE 1/23/2012: The starter theme has been completely rebuilt using the styles and features from Genesis 1.8. I created a new repo (and removed the old one) so the links below have been updated accordingly. Please check out the readme for more information!
This is my personal “starter” theme (base theme) I use when working with a project running the Genesis Framework. It is based on of the Sample child theme by StudioPress with some minor modifications. Feel free to use it as you see fit. Obviously, it requires the Genesis Framework. Suggestions and forks encouraged. The GitHub page contains a bit more information.
Just a few days ago bbPress 2 rc5 was released. It has a handful of tweaks, but the one I wanted to point out is addressing Genesis Framework compatibility.
Ticket #1622 was opened just 2 weeks ago by jjj and was based on the bbPress Genesis Extend plugin I had thrown together to fix a few issues with Genesis. After a week of tossing the patches back and forth with jjj, we ended up with solid fix and he committed it just in time for rc5.
[Read more...]
I recently had a project which required integrating bbPress (which, obviously I am a fan of) into a site built on top of the Genesis Framework.
From my experience, 90% of the integration went smoothly. There are a few things that may crop up and screw with your iteration depending on how you have your Genesis settings configured.
I have thrown together a quick (translation: rough) plugin that should keep these oddities for occurring. [Read more...]
The title say it all – I’m giving away 2 copies of Professional WordPress Plugin Development. Two recent events spurred me to do this.
First, lately I’ve had to deal with an obscene number of plugins that are terrible. The concept behind them is great, but the execution (code) is bad enough to warrant sticking a rusty fork in my eye. I understand, writing a good plugin is no easy task. However, thanks to new information available (such as this book), there is really no excuse for a plugin to cut corners. Or have no corners at all. I want to raise awareness and promote writing plugins the right way.
Secondly, I just released my own plugin into the wild: bbPress New Topic Notifications.
Professional WordPress Plugin Development is the best (and only) book which walks you through writing a plugin properly. It covers all the APIs and best practices, so you can be sure and receive all the praises of writing an awesome plugin.
Entering to win is simple. Just leave a comment that describes a plugin you would like to see written. Example: I’d like to see a plugin that enables avatar uploads for bbPress 2.0.
Two winners will be selected and announced on Friday.
Update: Congrats to Nick P. and Mannie S. – they were the two randomly selected winners. Check your inbox for more details! I’m hoping to run another giveaway with more goodies next month!

Preview of the admin settings
Many people who run forums would like to know when a new topic (thread) has been posted but do not have the time to constantly check their forum for activity. This solves that!
bbPress New Topic Notifications will send an e-mail notification to specific addresses when a new topic has been posted. The users who receive notification along with a simple e-mail template is configured in the bbPress settings.
Please report any bugs you find in the comments or the plugin page on WordPress.org.
The next major item on the to-do list is to add the option for notifications when a reply is posted.
Just checked the weather around the San Francisco area for this weekend, it’s going to feel great! Here in College Station the high every day is around 102-105 – I may not want to leave San Francisco.

I recently was working on my own Genesis CRM (similar to what Bill Erickson has released).
Unlike the other CRMs out there I decided to create a custom post type for my contacts instead of doing a bunch of magic to use posts. In a few places throughout the app I needed to pull the total number of contact entries in the database.
Turns out, it is very easy to do! Just a few lines of code, which you can see below. Make sure and change contact to the name of your post type.
function ja_total_post_count() {
global $wpdb;
$numposts = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_type = 'contact'");
if (0 < $numposts) $numposts = number_format($numposts);
return $numposts;
}
// To use...
echo 'Number of total contacts: ' . ja_total_post_count();
I am a WordPress consultant, Genesis developer, Texas A&M graduate, and proud Texan.
I've been using WordPress for over 5 years and specialize in the Genesis Framework. I work with clients of all sizes - from WordPress VIP customers to small businesses and individuals.
When I'm not knee deep in code, I regularly attend WordCamps around the country each year. Read more.
Every site I create is built on top of the Genesis Framework. Genesis provides a great foundation for any site.

Copyright © 2012 Jared Atchison
Genesis Theme Framework + WordPress