Learning from this tutorial, I added a blog page, using the admin panel, to an already running website that has a custom theme made from scratch (by someone else). But the new blog page, didn't show anything other than the website footer in the beginning, so I added a piece of code in the
index.php, and fixed it... Now when
example.com/blog/ is called, the blog posts are drawn.
I want to follow the common/correct convention, and perhaps have another file like
archive-post.php do the task. I am not sure how to do that. I read Post Types & Template Hierarchy. I don't Understand if WordPress automatically follows that template hierarchy, or It is just a recommended practice, and I should use get_template_part, to make such a hierarchy. If so, is using
get_template_part the correct way?