Q:

How to display post in custom file not in archive file?

I create file content-expertises.php and display my category list. Now, When I click one my category name, it is redirect in category.php file not my custom created file like category-expertise.php.
My current path is:
  http://hostname/expertises/project-reviews/

When I click my category name it is redirect in:
  http://hostname/categories/category-name/

But, not redirect in my custom created (file is clone of archive file):
 http://hostname/expertise/category-name/

A:

Is the file named content-expertises.php or category-expertises.php?
WP will use the first template file it finds in your theme directory from the following list:
category-slug.php
category-ID.php
category.php
archive.php
index.php

https://codex.wordpress.org/Category_Templates

