Which template to use for blog posts?
-
Hi there.
I am using the _s template and set WP to use static pages for home and blog posts. But I am not able to find what template to use for the blog posts.Currently my page.php loads the content.php in the template-parts folder.
<?php get_template_part( ‘template-parts/content’, ‘page’ ); ?>I don’t know why WP uses the content.php (not content-page.php). But that’s not the problem. I need WP to load another template (part). Something like content-blog.php or content-posts.php perhaps.
I can’t figure out how to name my template, so WP loads the appropriate file.Hope there is anybody who can help 🙂
The topic ‘Which template to use for blog posts?’ is closed to new replies.