Create multiple rewrite endpoints for custom taxonomy archive
This code above works fine up to one endpoint but not working for multiple endpoints like following https://example.com/dogs/shop/prod-cat1 https://example.com/dogs/shop/prod-cat2 https://example.com/cats/shop/prod-cat1 https://example.com/cats/shop/prod-cat2 Uses template shop-cat.php & value of query variable i.e prod-cat1, prod-cat2 available on template Your request hook callback is always setting the query var to true, like so (for the shop var): if (isset($vars[‘shop’])) … Read more