Is it possible in wordpress when I call example.com/category to have listed all available categories. If I request the url like in my example I’m getting an 404 page
Is it possible in wordpress when I call example.com/category to have listed all available
Share
I’m not sure if there is a default link to list all the categories.
But it doesn’t mean you can’t do it yourself. Create a new template file in your theme, name it for example category_list.php and add this code:
You might want to tweak it a bit to display it how you want.
Then go to Pages -> add new. Name the Page as “Category”, so that the url will be
example.com/category.And in the template list select the template you just created. It will be named “Category listing” as you can see in the code above in the comments at the top.