Post Standard Fields Reference

Fields available to Posts, Pages and Custom Post Types (not including post_meta). Media Library is also a Custom Post Type

Single Actor Detail from PodsCast #4

<?php /* Template Name: Actor Detail */ ?> <?php get_header(); ?> <!– Row for main content area –> <div class="small-12 large-8 columns" id="content" role="main"> <?php /* Initiate the Pods Object */ // get the current slug /* $slug = pods_v( 'last', 'url' ); */ global $post; // get pods object $mypod = pods( $post->post_type, $post->ID …

Read more

Single-Video Detail from PodsCast #4

<?php /* Template Name: Video Detail */ ?> <?php get_header(); ?> <!– Row for main content area –> <div class="small-12 large-8 columns" id="content" role="main"> <?php /* Initiate the Pods Object */ // get the current slug global $post; // get pods object // $post->post_type can be used instead of the pod name, ie 'video' $mypod …

Read more

Order by Numeric Field in Shortcode

This method can also be used to handle any CAST by specific type order by. <?php /** * WordPress stores all meta fields as strings, which causes problems for ordering by numbers. When using Pods::find() directly, this issue can be addressed by casting the field as a decimal, as shown here: https://github.com/pods-framework/pods-code-library/blob/master/example/classes/Pods/find/examples/orderby-number.php * * In …

Read more