When searching for a keyword within WordPress normally doesn't search the category taxonomy for results. The following code will output a list of category results that you can customize how you see fit. This will also return categories even if they have no posts within them.

 

Share This

We are using cookies on our website

Please confirm, if you accept our tracking cookies. You can also decline the tracking, so you can continue to visit our website without any data sent to third party services.