I am working with wordpress.
I see that in my index.php there is a code called <?php get_footer(); ?>
..and I get it, it's simple. This code will pull footer.php
.
It seems to me that the get_footer()
is built in to wordpress that pulls anything that is named footer.php
.
I have created my own page called page.php
.
I want to be able to 'get' this page and show in my php code enabled 'sidebar widget'.
I have tried to paste this code, and I am more that certain that its wrong:
<?php
echo file_get_contents("side.php");
?>
What code would I need if I want my custom page called page.php
to be shown?