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
- Main menu not appearing on category pages
- Using URL parameters, list posts from category and custom taxonomy
- Display posts links from a category group by year
- List categories for author: list_categories function inside list_authors function
- Hide a certain category name without removing it?
- How to insert category and subcategory using ‘wp_insert_post’ function?
- Show posts of category in a page
- How to create taxonomy values for pages and list them in wp-admin
- display woocommerce all category title on home page
- Limit number of terms that a custom taxonomy can save per custom post type
- query cat orderby and order not working
- Add tag parameter to category.php
- List recent posts with link to first category
- How do I add a category to my post_type
- WordPress showing wrong category name
- Add posts of a certain category to a page
- How can I filter posts by tag on the fly
- wp_nav_menu not appearing correctly on category page
- Post not found when filtered by category ID
- How to Show or Hidden Categories on page in WordPress?
- category description not showing in my woocommerce
- 404 on old link after changing post url
- Hide Some Categories in Post Editor
- How to create a table with counts of category combinations?
- product_cat image url from database
- Multiple if statements with else for get_the_category [closed]
- Using a template page parent breaks page
- Setting category for post as default
- Query post only from categories that have subcategories
- How to get the link of all categories
- foreach,having wp_query inside, breaks after showing one result
- Include Category Description in search result
- Automatically set posts to NoIndex depending on category?
- All post of child category not in top category
- How to add a tag above a category post that displays the category name in WordPress
- Woocommerce – Display product category of product in Orders page
- How to show video from wp option value?
- How to link ACF relationship field to the new Query block in Full Site Editing
- Order Categories by Character Count
- How to create a photo gallery that can be filtered by the image categories
- WordPress how to remove parent slug from category URLs
- How can I get the categories and subcategories separately?
- Organizing pages into different categories/sections
- Adding 400 product categories with their hierarchy to a navigation menu
- WordPress add menu items display slug too
- Link to a specifc category?
- How to update blog post categories in WordPress?
- Two related taxonomies. how to filter terms in second taxonomy depending on selected term in first taxonomy on Post edit page?
- Category page 2 url doesn’t exist