Use echo get_cat_name( $cat );
instead of the_category()
inside the link. the_category()
returns a link, so you will have a link within a link.
Related Posts:
- How can I hide a category from Contributors in the edit/add new post screen?
- Category page doesn’t use category.php, instead it redirects to homepage
- Multiple post categories – single permalink
- Wrap Post count in a span
- How to exclude uncategorized from permalink structure /%category%/%postname%/
- Create product category and keyword search form in woocommerce? [closed]
- How can I create a loop to build slides based on multiple categories using Coda Slider
- Saving two categories from two dropdowns in front end posting form
- Categories list loop – add separator every year
- How would you create a “weekly” archive?
- Exclude most recent posts from specific category in wp_query()
- Display all posts with same title
- Show children of top level category only
- wp_list_categories to show list of categories and the description
- How to display a description of a given category from a custom taxonomy
- Filtering by Category doesnt paginate correctly on the backend
- Add custom taxonomy under the category title
- Direct link to category?
- How to modify category.php to list posts alphabetically?
- Sorting posts by season
- Include posts from feature category in pre_get_posts
- Create blog page only to see one category
- Looking for the best solution to build this Blog structure? Picture attached?
- How Can I Display Categories Description
- Specified number of categoy posts not showing correctly
- Display Slug instead of Name
- List all the categories with or without post
- Set Current Category to Active in category.php
- Filtering multiple categories via the URL
- How to hide category description in the subpages? [closed]
- SQL to migrate post types to taxonomy
- WordPress query via checkbox form
- Multiple categories with common subcategories
- Counter in loop in foreach
- How to limit number of attachments
- Show category name and new articles and display page numbers. What function to use
- WordPress Post # of # filtered by category slug
- wordpress multisite… collect all posts on main blog – exclude category?
- Sub category templates
- Automatically redirect a page to a category that share the same slug
- How to put an array in is_category
- How to add custom color fields to the category edit page?
- Target a specific category from a custom taxonomy?
- How to modify the output of wp_terms_checklist when used within the built-in category metabox on edit posts?
- Edit tag_id in category pages of dashboard
- wp_list_categories with category description
- Category page returns 404 error
- More efficient way to list posts by category [duplicate]
- Query posts by views on category page
- How to get nav to show current_page_parent class when on regular post (not blog), differentiated by category
- Change appearance based on category but post is in two main categories
- Custom Page Template Category loop not functioning correctly
- Random category with recent post title and thumbnail
- I would like to feature a tip on the homepage
- Redirect depending on category chosen
- Custom url structure – pages under a custom post type
- How to correctly display category’s slug as a class?
- prefix to post permalinks without affecting category permas
- How do I export the headlines of all the blog posts in a single category?
- Category post count is not correct
- How to add tags under categories
- Problem creating wp categories
- How to add commentary types or category for a post
- How to change current category to another in wordpress
- show thumbnail for subcategory wordpress
- Pagination for custom categories template
- Category URL’s 404 after setting category base to ‘.’
- How to allow each editors to only edit certain categories?
- Bulk assign posts to a category using SQL (MySQL)
- Hide a category/posts from the homepage in wp
- How to modify custom category field from front end?
- Excluding particular category from displaying in specified areas
- Query post if has two of the categories
- Display Category description
- How to change the “This category has no blog posts yet!” text
- Change Category Base For Custom Post Type or Posts Page
- Category name as page title
- Bulk Change WordPress category Slug
- How to use categories, sub-categories and customize navigation view
- Hide empty category on woocommerce
- List only child categories a post is in, of a specific parent category in wordpress
- Ajax Response Error
- Adding a category view to a page
- make categories editor unchangeble for my post_type
- same permalink for parent category and child category
- Use specific category for every author on author page
- If it is a top level category show children otherwise show sibling categories
- woocommerce – products by category slug? [closed]
- Hiding any option or menu from menubar
- Sidebar Categories change arrow when subcategories are shown on click
- How To Disable Category Hierarchy In Categories Widget?
- Show custom menu in category and its posts
- What approach should I take for this URL structure?
- Custom loop by url
- Display post content from category name using ajax
- WooCommerce category display in custom page
- How to display the category featured images [closed]
- Echo Category In Loop
- How to define category ID in an array?
- Replace category titles inside RSS feed