You can use get_queried_object
to return the name of the current category page you are on
$cc = get_queried_object();
echo $cc->cat_name; //display the name of current category page
Related Posts:
- How to get category and archive title?
- Multiple level category drop-down
- How to create a widgetized sidebar for every category dynamically?
- List Categories of the Parent Category of the Current Category
- Single_cat_title() print the title before text
- Edit the markup of categories list
- How to get data about category in category.php
- editing fonts of category links from the_category() funtion
- How to check category of of custom post type or not
- Set a them for all subset of category
- Enter a variable in the ‘category_name’ parameter
- WP didn’t redirect to canonical category URL
- Custom Walker for wp_list_categories
- How to do some action weekly?
- So my theme doesn’t have a category.php file
- Change post title if post has specific category
- Theme for subcategories
- Theme modification for custom category menus
- How to list posts from a sub-category that is listed in a parent category (more details below)?
- How can i add service category here? [duplicate]
- How do I remove “Uncategorized” from my theme on my posts page?
- Category page 404s on mobile but not desktop?
- Regarding Tags And Categories
- Style a category page the same way as the homepage?
- Jetpack Mobile Theme: when on smartphone on categories the theme suddenly changes to jetpack mobile theme even though it’s deactivated
- Choosing different templates for categories
- Show posts from all categories
- Removing categories, Comments etc from posts?
- altering theme – content generated by PAGES not PORTFOLIO
- Category page with gallery for each post
- Custom built theme won’t filter categories
- Duplicate homepage to show posts from 1 category
- How to hide my categories pages’ names, and how as well to reduce the space beween my sidebar’s widgets?
- Get all categories and posts in those categories
- How to display non-hierarchical taxonomy as terms with checkboxes?
- Combine two taxonomies in a hierarchical tree
- Get current category details the user is currently on in category.php
- Get the number of posts in a named category, outside the loop
- Test if post has a category
- I want to order categories based upon the latest post time
- Highlight current category in wp_list_categories
- How to find all posts without category and assign the “Uncategorized”?
- How to Override default update_count_callback for category
- WordPress previous_post_link exclude posts with multiple categories
- Is it possible to put tags and category information in the post as text?
- Is it possible to post with Word 2007 via XML-RPC and limit categories by user?
- How do I make the category template display full posts instead of partial posts?
- how to get the categories for a single post in a hierarchical way
- Getting categories id for all products in cart
- How to Filter categories in the permalink structure
- Is there a cleaner way to get post count for a category in category.php?
- Show archives by year from just one category
- Post count for category and tag
- Combining post categories and link categories?
- Customize WordPress widget – Product Category
- Display categories with child category separated by letter
- How to make the link to the category for a post go to corresponding page number in archive?
- How to build a simple nav system of custom post type categories and its posts?
- How to insert category list into post creation page, and retrieve chosen categories?
- Shortcode interpreted as text
- scaleability of tags
- Grouping post-types in loop
- Having problems with paging
- Custom page category taxonomy 404
- Template hierarchy: how to let category.php conditionally-load archive.php?
- Getting Category Children
- Child Category Conditional Question
- Break down output of wp_list_categories
- Get the ID of the current post’s child category
- get category name in admin screen
- Posts of specific category on page and excluded from index.htm
- How can assign posting to Subscriber to specific category?
- Include specific category in URL automatically
- WordPress Category Page Layout
- It is possible to display related posts from same category as the current post?
- Page category filter in admin dashboard
- Remove WP Core canonical for category pagination
- Create categories manually in database
- how to display specific Category if post have more one Category?
- Is there a way to fetch the category of a page when using wp_list_pages?
- How to fix 404 error in pagination in categories of woocommerce with common url base /shop/?
- Hide specific category link from showing
- Product Category page showing all products
- How can I add HTML classes for current taxonomy/term hierarchy into my pages to simplify styles?
- Display List of Categories Within a Custom Taxonomy
- How to remove specific categories from tag archives?
- add custom option to get_categories dropdown
- Category as subdomain
- get categories the post was in and just been removed from
- Loop through posts of CatA and store value of CatB in separate array
- Highlight posts that belong to current sub category
- How to enable admins/editors to set a featured image for specific category?
- Problem with single posts not showing correct category sidebar
- Multiple Categories under one URL, where ‘Front Page’ is used already
- finding out the top 5 source ( source is a custom taxonomy ), in a given category
- Having Trouble With get_category_by_slug In a Custom Function
- WordPress category gives 404 after moving to a different domain
- How to load/include category templates based on conditionals?
- Why does WordPress append a bullet to my category tag?
- how to implement next/prev within category archive?