Types and Views
Fix Double Sidebar Problem with Genesis CPT Archives Plugin
Force full-width layout with Genesis and CPTs
I needed to force a full-width-layout on my single custom type page. After a bit of trial and error, I ended up with this code: Just replace CPTNAME with your custom post type name and you’re good to go.
Read MoreTypes & Views: check for image; if none, display default image
This comes in handy if you don’t want a big empty hole where a graphic or photo should be. Comes in handy when someone forgets to upload an image.
Read MoreRemove Post Meta or Post Info from Custom Post Types
It happens fairly often that we have a client who needs a custom post type as well as the usual blog/news feature. We need post meta and/or post info to show up for the news posts, but we don’t need that information on the custom post type since that information tends to be fairly static,…
Read MoreAdd Genesis SEO and Layout Options to CPTs
This is quick and easy. When you create a custom post type while running the Genesis framework, you won’t get Genesis’ built-in SEO controls or layout options. Add this to functions.php and they’ll show up.
Read MoreEvaluate Types & Views Content; Don’t Display Empty Fields
Now that we’re all in love with Types & Views, we had to figure out how to evaluate custom fields to determine whether they should be displayed. After an hour of beating our heads against the wall, we came up with the code below. The thing that tripped us up? Check out this bit of…
Read More