Good day guys! I created a php file named test.php and i put a simple code
<h1> Sample Text </h1>
How to call my custom page to
front-page.php just like how
get_footer() are called?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
Do you want to include your test.php in front-page.php?
You can use get_template_part() for this.
As parameter use the path to file without ending, e.g. if it is in root:
<?php get_template_part('test'); ?>