Enabling Shortcodes in Pods Templates

This piece of code can allow shortcodes to be processed in Pods Templates.

You will need this snippet if you want to easily allow shortcodes to be called and processed inside of Pods Templates

<?php
/**
* Allow Pods Templates to use shortcodes
*
* NOTE: Will only work if the constant 
* PODS_SHORTCODE_ALLOW_SUB_SHORTCODES is defined and set to true, 
* which by default it IS NOT.
*/
add_filter( 'pods_shortcode', function( $tags )  {
  $tags[ 'shortcodes' ] = true;
  
  return $tags;
  
});

You will need to modify the PODS_SHORTCODE_ALLOW_SUB_SHORTCODES in your wp_config.php

Questions