I want to create a custom template for my job post listing

I have registered a new custom post type, job. Then I have created a template for a single job post, single-job.php, which works fine.

But when I enter URL www.xyz/job all records are displayed using the index.php template which, is the one that my blog uses. How can I create custom template for www.xyz/job records so I can edit it independently without touching blog template, which is index.php?


A specific post type template could be created with archive-{post_type}.php -> archive-job.php.

Here is a good descriptive image of the template hierarchy in WordPress. enter image description here Read more about the template hierarchy

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.