The Pods Templates and Magic Tags were never intended to completely replace PHP and PHP Theme Templates so their limitations are pretty severe. If you need more functionality than what is provided, you often either have to get creative or switch to a PHP Theme Template.
Contents
Use PHP Functions on Magic Tags
For functions that require additional parameters, you basically have to create your own function to take the field parameter and then process it with your additional parameters within your own function, ie,
1 2 3 4 |
function trim_right_field( $field ) { return rtrim($field,75); } |
And then call that within Magic Tags as {@my_field,trim_right_field}
.
Call Pods Shortcodes inside Pods Templates
Why you’d use this and what it’s good for