You’re looking for single_cat_title().
Related Posts:
- Upload Multiple Files With media_handle_upload
- Display random categories on the front page (Finding and Editing Theme Functions)
- How to add classes to images based on their categories?
- current_cat_ancestor Alternatives
- Add body class of category parent
- How can i list current author’s categories?
- Changing a function in function.php to a shortcode – for listing categories of only a certain post type
- Php string not working in WordPress Functions.php (trying to fetch 1st category for each blog that post appears in the sidebar)
- Add class to Categories Widget
- How to Acheive the custom woocommerce category template
- How to add a rel attribute to images that contains their categories?
- How to set child post categories to parent post categories when updating parent post?
- Assign category using custom field?
- How To Get WordPress Categories Link List?
- Changing post category from dropdown
- Manipulate Output of wp_list_something: select menu instead of li’s
- Make Categories a Dropdown Menu in Media Library
- When to use an if statement after get_posts?
- Programmatically Create Category and sub Category
- Logic to Print/echo a css class only for 1st post and ignore all post after 1st? [closed]
- Attach parent category template to all subcategories
- exclude a category from a search on a specific page
- How to use Internationalized human_time_diff() function in Chinese?
- Is it possible to change any of the HTML/URL returned from the_category()
- Custom HTML in specific category single page and its descendant categories
- Possible to display shortcode based on the category?
- Unset Category if other Category is unset during post transition
- Select pages by category
- Show Primary Category first when I display post categories
- How do I hide or remove ‘Category’ from wordpress breadcrumbs
- Ordering posts by publish date not working?
- Categories as main menu items and subcategories as nested lists
- Get category URL for current post
- Need help “sanitizing” a custom function that pulls category slug into body class
- allow only one post in specific category
- How to obtain the recent posts without their content in an efficient way?
- Setting a default text for excerpts of a particular category
- Running script based on Category
- Remove a category from a post when saving a new post
- How to fix get_the_category function returning incorrect slug?
- Return category name with & Ampersand doesnt work
- Access category within rss2_head hook?
- issue with if/elseif in_array inside foreach loop display only one post
- Randomizing wp_tag_cloud() in child theme
- add_filter to specific WooCommerce Category
- How to rewrite wordpress search to work on specific category
- Image loading function not working on archive.php template
- Exclude Category ID in function
- Problem with calling custom function in a foreach loop
- Specify multiple categories for custom post template – FATAL ERROR
- “All posts” in the category widget
- Get Attachment Category Name
- WordPress Categories: Function using custom SQL to return array of specific category IDs
- Display ACF category image on archive and single template files
- Get slug of current category in functions.php
- Display a list of random terms from custom taxonomy with shortcode
- Change category display name function
- Display link to category over featured image
- Remove the ‘category’ url for one category type
- Custom Function.PHP Code Not Working on One Site
- Adding new Category does not refresh the backoffice
- How do i tweak my wp Post title base on category of the post
- how to remove a tag in the_category function
- Menu and category highlighting for a single post
- i can’t use wordpress functions in ajax loaded php file
- Graphic before title – Specific Category
- require_once() Causing categories and tag pages on dashboard to not refrsh
- different body classes for each category
- How To Get WordPress Categories Last Update Date?
- How to get tags and categories?
- How to Insert A List of Posts in A Category Written by the Author into the Author Archive
- Removing all Category pages with one exception
- Get category of post inside save_post hook
- I am looking for a function to create category links in the wordpress loop for articles
- Override categories with Pages (block theme)
- is there a list of actions on WordPress
- Output parent/child categories and posts in that parent/child hierarchy
- Sort posts by Date (DESC) and by Title (ASC)
- Remove a menu item created by a plugin
- Using wp_get_nav_menu_items() to list children of children pages
- How Can I Access a PHP Variable in Another PHP Function
- Theme Demo in live Site
- Change a sidebar name?
- Set quantity of woocommerce product on page visit [closed]
- How to load jQuery in the footer – nothing works for me
- how to en-queue jQuery to load before the tag
- Including php files within template
- New custom menu created. how to apply it?
- problem loading stylesheets to wp_head dynamically
- Unable to point the child theme directory even using get_stylesheet_directory()
- Get the alphabetical sorted data with wpdb
- WordPress Check User Role Function (multiple roles)?
- struggling with syntax for the_post_thumbnail();
- Allow user select role in wordpress default registration without plugin
- Re-style Login Form Whilst Keeping CSS Separate from Frontend CSS
- Can You Set A Minimum Image Dimension For Resizing Images?
- Function image_send_to_editor returns emty title tag
- Using conditionals, maybe from a DB, to register & enqueue files, for varying pages, in functions.php
- Adding a filter to my posts
- comment_post function with js not running