Enabling Shortcodes in Pods Templates
This piece of code can allow shortcodes to be processed in Pods Templates.
This piece of code can allow shortcodes to be processed in Pods Templates.
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.
Planning Your Solution with Pods
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.