I have added this code (taken from the Custom Field Shotcode plugin) and added it to my function.php file:
function customfields_shortcode($atts, $text) {
global $post;
return get_post_meta($post->ID, $text, true);
}
@add_shortcode('cf','customfields_shortcode');
I can run this code in any of my posts or pages and in a widget:
[cf]linker[/cf]
and it will give the results of the value of the custom field labelled 'linker' (in this case it is an external URL link)
However if I try to run it in a T2 template it will not run ...
How can I get the T2 template (SRR template) to accept the shortcode?
Thanks for you help