Image & Media Fields Reference
Shows fields that differ in reference to Image & File Fields
Shows fields that differ in reference to Image & File Fields
Used for Category, Tags and Custom Taxonomy
Fields available to Posts, Pages and Custom Post Types (not including post_meta). Media Library is also a Custom Post Type
In order for Shortcodes to be processed in Pods Templates, you do need to make some changes to your configuration.
This particular template is based off of Twenty Fifteen and works for both the Single & Index/Archive & Search.
<?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 …
<?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 …
Shows how to construct a standard post type archive using Pods functions to control the loop and field display.
When you need to change what is shown in the drop-down Select Field in a Relationship, you can use this method to base the value on other values in Post Type.
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 …