Tagged: advertising, single.php, template
Hi,
what is the best way to inject some advertising code into a space AFTER the related posts area?
e.g. <?php if(function_exists('the_ad_group')) the_ad_group(4); ?>
Will I have to modify the single.php template?
Or can I do that through some function in functions.php?
Tx,
Frank
Hey,
Try the following (child theme / theme functions.php):
add_action('ava_after_content', function($id, $content) {
if($content == 'post'){
//CODE HERE
}
});
Best regards,
Josue