Solved it with the following Custom Walker:
class CustomWalker extends Walker_Category {
function start_el(&$output, $item, $depth=0, $args=array()) {
$output .= "\n<li><a href=\"http://website.com/?ls=&location=" . $item->slug . "\">".esc_attr($item->name);
}
function end_el(&$output, $item, $depth=0, $args=array()) {
$output .= "</li>\n";
}
}
Related Posts:
- How to show a hierarchical terms list?
- The Difference Between Hierarchical and Non-Hierarchical Taxonomies?
- Remove the category/taxonomy description field?
- Add ‘Description’ to taxonomy ‘Quick Edit’
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Better way to enforce category hierarchy in post_categories_metabox?
- Is there any difference between post in child term and child & parent terms?
- Add Thumbnail to wp_list_categories()
- Count argument in get_terms has no effect on ouput/doesn’t work
- Trying to list terms of a custom taxonomy using get_categories
- Embed YouTube video on category description
- How to output hierarchical taxonomy path, with only the deepest term assigned?
- Display Taxonomy Description on edit-tags screen?
- List posts in a category grouped by other categories?
- Hierarchical list of custom taxonomy terms
- Creating links to a page displaying posts from a particular category
- Get terms in hierarchical taxonomy
- Tags hierarchical
- Is possible hide hierarchical select dropdown created by jetsmartfilters? (only visual issue)
- Show subChild categories
- Parent Category and Subcategory default text generated with category
- Order custom taxonomy hierarchy
- outputting taxonomy hierarchy
- Make/create a category for every page
- How Can I List Categories by Date?
- Delete Term via edit-tags.php
- Is There a Difference Between Taxonomies and Categories?
- Get Posts Under Custom Taxonomy
- Adding Fields to the Category, Tag and Custom Taxonomy Edit Screen in the WordPress Admin?
- How to perform unit testing on proposed patches in Trac?
- Attaching taxonomy data to post with wp_insert_post
- Need a simple but complete example of adding metabox to taxonomy
- How to get taxonomy term of the current page and populate queries in the template
- Can I add a Category Metabox to attachment?
- Can the default “post tags” taxonomy be renamed?
- How can I allow commas in tag names?
- Custom columns for taxonomy list table
- Custom Taxonomy WP_Query for All Terms in a Taxonomy?
- Custom taxonomy list page?
- How to change permalink structure for custom post type and it’s taxonomies?
- Get the first post term
- Check if a post is in any child category of a parent category
- How to add a default item to a custom taxonomy?
- How to export and import taxonomies (category, tag and/or custom taxonomy) and their terms
- Why does get_term() require taxonomy? Are term_ids not unique?
- How does Woocommerce store variation attributes, and how can they be retrieved per-variation? [closed]
- tax_query in get_posts() not working?
- get_categories for custom post type with a specific custom taxonomy attached
- Different post sort order within different categories
- What is wp_insert_term “alias_of” arg for?
- Automatically Assign Parent Terms When A Child Term is Selected
- Control term order on a per-post basis
- Could not insert term into the database
- How can I add the featured image functionality to a custom taxonomy?
- Creating “static” taxonomies to choose from, inside custom post type?
- Share one taxonomy across multiple blogs in 3.0 [duplicate]
- get term by id without taxonomy
- Can a Child Category Have More than One Parent?
- Combine two taxonomies in a hierarchical tree
- How can I list all the categories under a Custom Post Type (taxonomy)?
- Weird behaviour when adding terms/term_taxonomies programmatically
- How to organize and cache additional data associated with terms?
- Using pre_get_posts to set posts per page, how do I?
- Different template for subcategories
- get a specific taxonomy term name
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- wp_set_object_terms() Fails to Set Terms
- wp_set_object_terms() — prevent overwrite?
- Taxonomy terms sort by… Last name!
- List Hierarchical Term List with Count with Related Term
- How to list all categories and tags in a page?
- How can I select a primary category?
- wp_update_nav_menu_item() to insert categories
- Is there a way to set singular/plural labels for taxonomy term names?
- WordPress – Creating multiple versions of the same single-customtype.php depending on selected taxonomy categories
- get_terms() How many is TOO many?
- Exclude custom taxonomy from search results and archive pages
- Taxonomy/category hierarchy lost when editing posts [closed]
- Child Terms not Displaying on the Taxonomy Term Admin Screen
- get_terms with posts that have a different taxonomy with term x
- Admin Panel – Disable Moving Selected Terms To Top of Metabox
- How to display child term of current term’s parent taxonomy?
- How to make custom taxonomy check boxes like ‘Categories’
- List all taxonomy terms / Show links if posts are attached, else names
- List taxonomy terms as links
- check if tag exists in wp database
- Sorting custom taxonomy causes menus error
- How to overwrite a specific parameter in a core taxonomy?
- Create terms when registering taxonomy?
- Set a cookie in WordPress, using a select form and Jquery
- Categories’ hierarchy in URL
- How to add terms to taxonomy with wp_insert_terms?
- How to update taxonomy custom field with wp_update_term()?
- How to create non-unique sub-category slugs?
- Get_term_by only returns one item from array
- Custom Taxonomy Only Showing Top Level Terms in Admin?
- How to sort list of custom posts to get view like a tree of posts under categories and their children’s categories?
- How to set a Preset category for custom post types?
- Can we have same term slug in different taxonomies?
- How can you make permalink work for custom post type and taxonomy?