Code Snippets

Collections of all of our Hook & Filters, Pods Templates and Template Examples

Setting Default Taxonomy Term for Custom Taxonomy & Custom Post Type

Posted in , , , ,

Here’s a clever way to set to the default Custom Taxonomy Term for a Post Type (similar to ‘Uncategorized’ in Posts)

Integrating Pods Templates into Taxonomy Archive WITHOUT Taxonomy.php

Posted in , , , ,

A way to use the_content filter to push Pods Templates content into a Taxonomy Archive.

Return a Calculated Value in a Pods Template

Posted in , , ,

Calculate values from a Pod using multiple fields in the Pod in a Pods Template

Changing Order of Posts for Taxonomy Archive in Genesis Loop

Posted in , ,

Need to change the sort direction or filter output based on Taxonomy for a Genesis theme? This method will work for you.

Disable Pods Shortcode button in Post Editor

Posted in , , , ,

Use a filter to hide the Pods Shortcode button

How to Limit FIND or WHERE to a specified number of related values

Posted in , , ,

$params = array( 'select' => 't.*, COUNT( relationship.ID ) AS relationship_count', 'groupby' => 't.ID', 'having' => 'relationship_count < 2', );

Get Values from a Custom Relationship Field

Posted in , ,

How to pull records from a related pod through the Relationship Field in a Custom Post Type

Example using Pods-UI to Create Admin Table

Posted in , , ,

Create a specific Admin Table using pods_ui

Changing the Column Order in the Admin Table CPT

Posted in , , ,

Changing orders of the columns in Admin Table

Create a Custom Pagination Navigation using pods_pods_pagination_{type}

Posted in , ,

Replace the standard pagination navigation with something custom you write yourself.