This is a powerful little snippet to allow filtering your post or custom post type by a specific taxonomy term in the WordPress admin. In my use case I had a custom post type for 'Team' members. I then had a custom taxonomy called 'Group' that associated each member with one or more groups within the organization. The client wanted to be able to filter all Team members by Group in the admin. My first thought was to use sortable columns, but that would still require scrolling and possibly … [Read more...]
Different Templates For Parent And Child Category Archives
This tutorial shows you how to use a different template via get_template_part() for parent and child terms of a post. You could make this work for custom post types or custom taxonomies too, but in my case it was just regular posts and categories. The site has a category called "Recipes", and a bunch of child categories like "Beef", "Poultry", "Breakfast", etc... The recipe index needed one template, while all child terms needed to share another template. Thankfully, after some googling … [Read more...]
Tabbed Content via AJAX in Genesis
This tutorial adds loading tabs with Ajax to my last tutorial about creating a tabbed content page template. Watch a quick video below to see it in action. http://youtu.be/BYGZqVNTg6o I'm going to assume you successfully followed my last tutorial, and you have a working page template with your tabbed content. To load your content via ajax there are a few small, but extremely important steps to get it all working. Typically, your first tab will be open by default, so you want that … [Read more...]
Tabbed Content Page Template In Genesis
This tutorial will help you setup a custom page template with jQuery ui tabs setup as the main content area. There are lots of plugins available that allow tabbed content areas in your posts or pages, but they are all a bit bloated to me. The jQuery that's included in WP already has tabs built in, so why load extra stuff? This tutorial gives you the basics of setting up a page template with tabs. From here, you can customize however you'd like. You can put ACF fields in your tabs, or … [Read more...]
Remove Avatar from Genesis Author Box
This quick tutorial (and snippet) allows you to remove the Gravatar/avatar from the Genesis Author Box. I recently posted about adding a widget area to the Genesis Author Box, but this site needed something different. I'm currently working on a website that has a lot of contributors (authors). The site requires authors to remain anonymous but still allow a pseudonym, as well as a really short bio. Given the requirements above, I thought it most fitting to still use the Genesis Author Box, … [Read more...]
Use Advanced Custom Fields Pro for Simple, Local Avatars
This tutorial goes through the process of setting up a custom image field for user profiles, disabling Gravatar, and replacing it with local avatars using the ACF field we created. We'll also include a fallback image for users that don't upload one. Let's face it, even though Gravatar is a really great idea, sometimes it's not that great. First of all, it can be quite a cumbersome task getting your website users to set up a Gravatar account. Secondly, Gravatar can slow your site down. Think … [Read more...]
Add a Widget Area to Genesis Author Box
There are a few tutorials around that let you customize the Genesis Author Box. They are great if you know exactly what you want to put in your author box. Most of the time you hard-code some content in, or add user meta fields. This tutorial explains how to add a widget area to the author box. This would allow the use of a Simple Social Icons widget (or just about any other widget) in the author box. I didn't want to change anything else either, just add a widget area after the default User … [Read more...]
Genesis Page Templates in a subdirectory
I'm currently building a custom theme/site that has LOTS of page templates. I find that to be the easiest way to make really intricate pages to my custom sites. For more info on how to create a page template, Carrie Dils already has a nice tutorial here. My issue was that I had so many page templates that it was making my custom child theme feel really bloated and disorganized. I tweeted about how I wished I could put my page templates in a subdirectory in my theme and Justin Sainton came to … [Read more...]
Connect Coda 2 MySQL with SiteGround databases
This morning I had to do some heavier editing of database tables, so I wanted to take the opportunity to test the MySQL editor that's built in to Coda 2. It's actually really simple, you just need to know exactly what to input into each field, and where to find that info. First off... if you don't use SiteGround (aff), I consider it the best bang for hosting WordPress websites. SiteGround Settings and Setup Step 1: Login to your SiteGround account Step 2: Go to "My Accounts" then … [Read more...]
Use WP_Query To Alter The Posts Per Page Of A Custom Taxonomy Term Archive Of A Custom Post Type
Wow, that title got me all dizzy. It's okay though, it's not that complicated, right? I just wanted to get this posted before I forgot what I did and where I did it. Since I use custom post types and custom taxonomies quite a bit, I need to reference this code quite a bit. On the current site I'm working on, here's what I have: Custom post type: Portfolio ( 'portfolio' ) Custom taxonomy: Portfolio Categories ( 'portfolio_cat' ) Portfolio category term archive: Media Analyst ( … [Read more...]