• Hi I added a page let’s call it newpage.php to the folder. I want to call newpage.php and so I think I’m suppose to use

    <?php get_newpage(); ?>

    Right? But it’s returning an error ” Fatal error: Call to undefined function…”

    Where do I go to define the newpage function?

Viewing 1 replies (of 1 total)
  • Hi, I think you misunderstood the include functions of WordPress like get_sidebar(), get_header() and get_footer(). These functions are found within WordPress and were made to make including of template parts easier. If you want to include a PHP file you can just use the PHP function include() or require().

Viewing 1 replies (of 1 total)
  • The topic ‘using get method to call a page’ is closed to new replies.