It looks like the default of the style
input parameter is list
.
Try something like:
'separator' => '·',
'style' => 'separator', // something else than 'list'
to override the list
default.
We can see why this happens by peeking into the Walker_Category::start_el()
method. There we have the following:
if ( 'list' == $args['style'] ) {
// ...cut ...
} elseif ( isset( $args['separator'] ) ) {
$output .= "\t$link" . $args['separator'] . "\n";
} else {
$output .= "\t$link<br />\n";
}
Related Posts:
- List all subcategories from category
- Get the children of the parent category
- Remove parent category from permalink? Basically only have the child category?
- How to remove the term “category” from category pagination?
- Force WordPress to Show Pages Instead of Category
- How do I get the category URL from get_the_category?
- Display all posts in category, with specific tag posts at top
- How to Set an Individual Homepage for Each User?
- Is there a way to remove categories in bulk?
- Is it possible to put next and previous category links?
- Custom category template pagination problem
- Getting category before saving post
- Attachment page per category
- How to get the depth of a category’s subcategories
- Best way to programmatically link to multiple categories (union/intersection) [closed]
- WordPress Multisite – global categories
- How to get child categories of a given Post
- Display “add to cart” button on every listing in product category page?
- Code to pull in a PHP file named after the category ID
- How to filter posts by format and category via url?
- Need to pull parent category and slug – only pulling daughter category
- Woocommerce category show subcategories only/omit posts for specific category
- How to display widgets inside a page content without a plugin?
- shop page with all categories with paginate
- Category location styling
- Get Tags specific to Category using WooCommerce plugin
- Giving wp_list_categories the class of the category
- WordPress category page redirects in .htaccess not working
- Category archive rewrite rule to include category/subcategory?
- How can I automatically display a visual archive of subcategory posts [and thumbnails] separate from Parent category?
- The default code for “posts_nav_link” on category.php isn’t working
- Change thumbnail image depending product category
- How to organize custom categories for filtering and selecting
- Woocommerce custom category pages
- Custom sub taxonomy order by
- Hide uncategorized when no category set
- category doesn’t showing up in admin
- Get category URL knowing it’s id
- Have multiple category queries from the URL been fixed yet?
- Why is it so hard to show the URL of the current category and how to do it?
- How could I know all the categories from post?
- How to make subcategory for custom post and and display?
- Create menu locations for each category in wordpress
- Conditional loop for category
- How to make the ‘delete’ button inactive on some categories?
- Notice: Trying to get property of non-object in : custom fields category
- Array: What is this value based on?
- Thumbnail for categories / taxonomies plugin?
- Pagination for query_posts();
- echo get_post_meta of all post in a category to fill up a select field
- WordPress list categories dropdown with parent-child relation and child under it’s parent
- How to Link to Most Recent Custom Post of Same Term
- WP REST API not retrieving all categories
- Category page not showing
- Notice: Undefined variable: category_id
- How to only show parent categories in sidebar
- Change RSS format for specific categories
- I need to exclude from a query a category and a few custom taxonomies
- Displaying a custom field in Category Archives
- List post only under the category, exclude child category content
- Custom Fields Value As Taxonomy
- Detect category choice for posts with multiple categories
- wp_insert_link not working
- Redirect Problems with Archive Page and GET variables
- Different size video display for category page (smaller) & detail page (larger)
- Adding tinymce to Custom Field boxes on Category edit page
- wp_list_categories : how do I sort by ID when IDs are not sequential
- Showing different posts on category pages
- How to exclude certain categories showing in Gutenberg?
- How to redirect to category page if page does not exists?
- Sort categories by custom field in WordPress admin
- Display the articles of a category by role
- Remove “Category:” from Post meta
- Related to genre and category
- How to load terms of a custom taxonomy of a product in woocommerce cart page
- restrict category to only logged in User
- Category and tag urls return 404 error
- Dynamically creating content on custom URL without getting 404
- Removin /page/2 from pagination
- get parent_category class in loop
- Category foreach Paging
- Display all of a post’s categories except the current category
- Alphabetize all but one category
- One category not displaying template updates
- How to display only category of blog without custom code?
- How to create a category or tag available exclusively to the admins and not to the users?
- Printing direct descendants of a category with WP_Query
- wordpress category.php query for featured news item, broken pagination and repeating posts
- How do I hide posts in a category from all listings but still allow the posts to be viewed?
- Form Value of drop down category + Translation of ‘show option none’
- Echo class depending on Parent category
- Query pages by category
- List all authors by matching custom meta data on a category page
- Page view: Sorted by categories
- How to display posts by author in a separate page, other than author.php?
- One color to category link depending on category ID
- Show subcategories and hide posts or show posts if not exists subcategories
- Use same wordpress category base and tags as the prefix as the post permalink
- how to create a page that shows all of multiple category posts on a single page
- Quick Edit on taxonomy names results in error