I want to display different content on my home page and in single pages, so I am using the following code in index.php
:
get_template_part( 'template-parts/content-home', get_post_format() );
At first I am displaying content-home.php
, then I will create new templates like content-home-video.php
etc.
Will it cause any problems if I use get_template_part()
like this?