Hello :)
I would like to insert a php code from AdRotate (ad banner plugin) at the end of all my posts. Precisely, I want this ad box to be displayed above the related posts element.
The code to add is the following
<?php echo adrotate_group(1); ?>
I also linked an example post. I would like to show this code between the fancy author box and related entries.
Thank you in advance for your support :)
Hey Gurify!
Try inserting that line (without <?php ?>) right before this line in single.php:
get_template_part( 'includes/related-posts');
If you are using a child theme you can copy the single.php file to your child theme directory.
Regards,
Josue
Hello Josue and sorry for the late reply. I did as you said but nothing showed up. I could see that an html line was printed but nothing was being shown.
How else can I try? Thank you for your help! :)
you can simply use one of this plugins: https://wordpress.org/plugins/header-footer/ • https://wordpress.org/plugins/post-layout/
Very simple to implement and doesnt slow you site down
Very welcome
Pay attention to the post link at the beginning of https://wordpress.org/plugins/header-footer/
There’s no confict with SEO Yoast…