Unable to include a template

On the home.php, which is in the same folder where style.css is kept I am try to call a template:

<?php get_template_part( 'template-parts/content', 'home-default' ); ?>
  1. template-parts is a folder which is in the root folder same where we have style.css, like

- theme-directory
  -- template-parts
     --- content-home-default.php
  -- style.css
  -- home.php
  1. Template is: content-home-default.php in template-parts, which is in the root folder

But this is not able to fetch this template. I am a beginner so perhaps doing some nonsensical mistake. Can someone please guide me.

0

Leave a Comment