Child-Theme Category View with modified permalinks (%category% removed)

I created a new WP Website and added a child-theme to it. The child-theme contains header.php, footer.php and I also created a category.php, in which I show different headers for each category.

I figured out, that the urls to the projets are now

https://domain.com/category/projects/projects-2009/projectname/

Now I want to remove the category from the url and i am using the 'standard' trick for category removal in wordpress. In my permalinks i set the actual permalinks structure to

/%category%/%postname%/

and the category base to

.

The urls are now fine but my category.php from the child-theme is not used any more and I also have no articles in the categories. When i change back the permalinks to the default everything works fine.

It also does not work to do it like category-4.php for the category with the id 4.

Maybe anybody can give advice what to do or what the correct way is to handle that.

Topic plugin-list-category-post child-theme php permalinks categories Wordpress

Category Web

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.