This post will cover a complex WordPress query and nested loop to output custom posts organized by a custom taxonomy. Let's run through the specifics of this particular example. In the example, we'll be organizing posts for our "Movie" post type by the years they were created, which is a custom
Code Snippets
Code snippets for adding styles and extending the functionality of your website.
How to Display a Category’s Name and Description in Genesis
The Genesis Framework includes some settings for each category that will automatically output a category headline and intro when they are set. However, it's a rather repetitive step considering WordPress has a "Category Description" in addition to the category name. Also, if you're switching to
How to Add an Icon Before a Post Title in WordPress
This tutorial is to show you a method for adding a custom icon image field to Post categories and displaying that icon before post titles that belong to that category. For it, I'll be using the Advanced Custom Fields plugin and some custom code. The end result will look something
How to Customize the WordPress Read More Link
Here's a few code snippets for customizing the WordPress Read More link displayed in post content (with the <!--more--> tag) and post archives. For the most part, customizing the link is pretty straightforward but users sometimes run into problems when using custom excerpts (excerpts written
Create Sidebars for Each Post Category in WordPress
I wrote up some code in response to a question on the Genesis community forum. What it does is register a sidebar for each post category (including new ones) and outputs the sidebar when a single post has the corresponding category and the sidebar has a widget in it. Note that this code is specific
Create Custom Genesis Layouts
Creating Genesis Framework Layouts This tutorial walks you through creating a new, custom layout in the Genesis Framework. In this example, I'll show you how to create a simple layout that adds two custom sidebars (one-half in column width) after the main content section. In the code
Create Invoices with Gravity Forms and WordPress
This tutorial shows you how to create a custom, line-item invoice system using the Gravity Forms plugin, Advanced Custom Fields Pro plugin and a few code snippets. I wanted to come up with a simple way to create my own invoicing method that integrated seamlessly with WordPress but I didn't want to
How to Set Default and Conditional Featured Images in WordPress
I hate not being able to find a good image for the featured image. Most of the posts I write are tutorials with code snippets, not images. As a result, many of my posts can easily not have featured images. Unfortunately, though, that would (and did) cause an inconsistent flow on my post index pages
- « Previous Page
- 1
- …
- 3
- 4
- 5
- 6
- 7
- …
- 10
- Next Page »