For now I have done this via category.php
/* Redirect Category to Post Grid tab */
<?php
$cat = get_queried_object();
wp_redirect( site_url('/locations/').'?tx_category='.$cat->slug );
exit();
Related Posts:
- Best Way to Redirect Category to Page and Hide Category
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Filtering categories in the permalink structure
- Multiple post categories – single permalink
- Preventing index.php?category_name=something from redirecting
- Multiple Domain Names – One WP Install (non-Multisite) – Default Each Domain name to Category Archive
- Add forward slash on categories url (serve one version of a url)
- Multisite blog converting categories to subdomains
- Optimal way to redirect home page to category archive?
- Redirecting specific category posts to subdomain
- Are Categories, Tags and Custom Taxonomies any different in regards to SEO?
- How to: 301 Redirect /category/ to /customname/
- How to? Redirect /category/sci-fi/ to /category/scifi/?
- Redirecting category link to first child post
- I use same slug name for category and page
- Redirect category to first available child post
- Viewing category pages without the word ‘category’ in URL
- Redirect category to url with /category
- Changing permalink from /postname/ to category/postname/
- One Specific Category To Permalink
- WordPress category page redirects in .htaccess not working
- Why do my categories redirect?
- WP didn’t redirect to canonical category URL
- Sub Categories Keep Redirecting to Pages With Same Slugs
- category url structure
- redirecting from a general category page to another specific one
- Category.php loads first before page.php?
- Redirect single article permalink to paginated category page
- Automatically redirect a page to a category that share the same slug
- WordPress link to post links to category (loop)
- Adding a H1 Tag to Post Tags automatically, but hide the tag? (Same for Category)
- Show different title on category page
- How to display post in custom file not in archive file?
- Use blog as base for tags and categories
- Category link redirect to custom template page instead of index.php?
- Redirect depending on category chosen
- Autolinking keywords in text with tags
- Need help with major category and permalink re-organization
- Redirect Problems with Archive Page and GET variables
- OK to redirect the root WordPress category slug?
- Shop Category Pages missing s
- How to prevent WordPress from redirecting single page to prefixed category archive with same name?
- Subcategory Page 404ing
- Using heirarchial tags or Custom taxonomies
- Default URL for category dropdown select option
- WordPress Category url redirects to subdomain
- Catch 404 after changing permalink structure from /%postname%/ to /%category%/%postname%/
- Paginations in Category Page Leads to Sample Pages
- htaccess redirect for all categories converted to tags now showing 404
- Page redirecting to category (IE only)
- Category Redirection Problem
- List all subcategories from category
- Remove parent category from permalink? Basically only have the child category?
- Filter by post category in Media Library
- Display all posts in category, with specific tag posts at top
- Send an email when custom post type category is changed
- How to Set an Individual Homepage for Each User?
- Why adding Categories does not auto refresh in Backend while using my custom theme?
- Display most recent post in category instead of archive?
- Remove specific category from a post
- Woocommerce – Get product category 2nd level category
- Hide post meta data on a specific category
- How can I get an tag to wrap each ancestor that gets outputted in this condition?
- How to prevent empty category to list content of sub categories?
- Why would in_category only return one post in a specific category?
- Is it possible to have WordPress not recognize category URLs?
- Disallow categories from this MySQL query
- Use a wordpress page to display a certain category
- How to list child categories?
- Creating gallery with taxonomy images plugin?
- Full text articles in the rss feed (i.e. without the more tag)
- Restoring default article pagination on archives – Removing custom limits
- Show Posts from Single Category Not Working
- Functions.php: Exclude Category from “Blog”
- How to restrict category creation to admins only while allowing editors to still pick category
- Show child taxonomies (that have posts) of the current parent taxonomy
- Query (built in) Categories and Advanced Custom Fields?
- Get next post in same category not working WP 4.7.4
- Page that links to category content
- Query from multiple category (and)
- Wp Dropdown Category Not Show Current As Title
- How to load several hierarchical categories from functions.php
- How to get the deleted category id?
- Maintaining a separate posts page for certain categories and don’t show those on home page
- WP E-Commerce WPEC 3.8 Sort Categories
- How do I list only children of a specific category in a drop-down?
- Link posts together (relative, not grouped)
- Creating a Blog with numerous categories
- How to hide description on categories and tags?
- Exclude a category from block editor’s category widget
- Replace deprecated get_category_children code with get_terms
- 301 redirects after changing permalinks
- Default category isn’t saved in database
- Category foreach Paging
- One category not displaying template updates
- Matching usermeta at registration to categories of content
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- How to show monthly archive posts?
- How to display posts by author in a separate page, other than author.php?
- how do I exclude a category foreach