Adding PHP to single post page

Good afternoon,

I wish to add a ‘related posts’ php code to the very bottom of my blog single post rather than it automatically appearing in a place I do not like:

<?php get_related_posts_thumbnails(); ?>

I am guessing I need to create a new .php file and put it into my pro child theme? If so what should it be called and where should it go?

Hi @hyperdrive_boom,

I can see you are using renew stack and you have a child theme already.
Copy this file from the main Pro theme
\wp-content\themes\pro\framework\views\renew\wp-single.php
To this folder path on your child theme
\wp-content\themes\pro-child\framework\views\renew\wp-single.php
You need to create the complete folder path on the child theme. Open the copied file and then add that line of code before this line:
<?php get_footer(); ?>

Hope this helps.

This i perfect thank you!

In the end it looked better just above the footer php but thats it

You’re most welcome, @hyperdrive_boom.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.