Looking for a way to incorporate standard post-type Pods Template into your Taxonomy archive output without creating a Taxonomy.php? Clever solution from one of our users on Slack.
This will only work where the Taxonomy you’re incorporating your Pods Templates into are only using one Custom Post Type.
add_filter('the_content', 'replace_content_mypod');
function replace_content_mypod ($content) {
// replace with the taxonomies you're using this with
if (is_tax(array('my_tax_a', 'my_tax_b'))) {
return replace_content($content); // function that uses $pods->template('my_pod_template_for_tax_archive')
}
// some other code
return $content;
}