Thank you for your question.
Try using the following code.
<?php
$categories = get_the_category();
if($categories[0]) {
$url = get_term_link((int)$categories[0]->term_id,'category');
$temp = "<dt><h1>{$categories[0]->name}</h1> </dt><dd>{$categories[0]->category_description}</dd>";
echo "<dl>\n" . $temp . "\n</dl>";
}
?>
Best Regards,
Vinod Dalvi
Related Posts:
- Setting Custom Sort Order of Posts within a Category
- How to change the layout and styling of posts according to their category in WordPress?
- Add default content to post (for specific category)
- Add custom field to category of custom post type
- Do I use custom post type or something else?
- Custom Theme Want To Remove One Category From All Displays
- Edit custom post type admin menu link
- Deleted category by mistake, all posts now have categorized category. Can i revert that?
- How can i limit the number of posts created per category?
- WordPress custom Query for Posts in Category display posts multiple times
- WordPress Multisite – Create Default Post and New Category On New Site Install
- Set Default Category to Username
- if in category but only with post meta
- How to call posts under a specific category on static front page?
- Static pages not working
- How to display only one category in a custom post type?
- Can I style single post that are in multiple catergories?
- Custom post styling per category?
- Show custom post category for single post
- Add Categories To Custom Post
- Static text above category page
- Show a Category Specific Info Box
- Add default content to post (for specific category)
- Display ONLY Latest Post From Several Categories
- Taxonomy Category category.php not working
- Post’s arent displaying
- Only show posts belonging to multiple cateogries at same time
- I have a website issue I am trying to resolve
- Get Posts Under Custom Taxonomy
- Remove Categories / Tags From Admin Menu
- Different number of posts in each category
- Is this the best (and only) option to style CSS for a given post type?
- Sort post by attributes ‘order’
- Display only posts from a specific parent category
- get_the_term_list by hierarchy order
- display sub categories assoccited with each post in a category archive page
- How can I specify a category post on my home page
- Can I hide a specific post from latest posts page?
- Remove custom posts that match taxonomy value
- WordPress – Admin Manage Posts – Multiple Filters by Parent Category
- Divide Loop Into Days & Categories
- Different template for posts of all subcategories of category
- Post Type Label Name
- Mark menu item as current-menu-item for category
- How to set up multiple taxonomies for groups of posts
- How to display category from recent posts?
- Blog Posts in Custom Menu
- Can I divide the pages into categories?
- Duplicate posts and change category
- Custom Post Type – Category Rewrite – Remove Rewrite from Sitemap
- Prevent Delete Attachment by URL or When Submit
- Turn On Comments On Custom Post Types in Directory Theme
- Post page to display specific category
- Calling Different Custom Post Timestamps in a table
- how to show single post in a custom template
- Excluding posts not working
- How to include my own css in post
- Remove current category from post but display all others
- How do I include the category next to the title of a post?
- How to show a custom taxonomy in the theme?
- How to import nested categories from XML file?
- Migrate posts from category and sub-category via SQL
- Posts Missing in Dashboard after update
- Display post number by category
- register_post_type permalink
- Custom Post Limit for homepage only without plugin?
- How to get post with slug and exclude categories
- Retrieving posts by their date and category
- Are post, page and category IDs unique to each other?
- WordPress displays post on subcategory only
- Post titles and thumbnails as links to custom post types?
- Adding a custom post type meta field to rss
- How To Use Custom Tax of a Post Type
- Categories Listing and Highlighting current category item
- get posts, run a custom query, and join the results
- Author post count in category
- Some custom post types did not return an object
- Show post count in custom taxonomy page
- Post relationships/nesting
- Automatic Table of contents with categories and posts
- Is it possible to remove actual post pages in wordpress but keep them in categories
- Need help with hiding an image within a post in a category
- Displaying dynamic content (blog posts/portfolio) on a static homepage and keep the blog post styles
- WordPress not showing recent posts
- How to get post count including nested categories
- Multiple Custom Post Type loop logic
- WordPress search for specific Post Type
- How to filter out post from a category not its subcategory in wordpress dashboard
- How can you control what a user is allowed to post in the backend?
- How can I display a specific number of post in a category via a url
- how to chang preview of list of articles of one category?
- Post of a specific category – not to be seen in paging previous/next post
- How to show main category related to that post
- Sort post by category using HTML Select tag
- Make assigning post to a specific category equivalent to assigning it to all categories
- First Custom Post Custom Fields Empty After New Custom Post
- How to have more post in a page than in your home page
- Exclude a ‘portfolio’ custom category?
- excerpt in template for specific page
- Wrap posts from a category in HTML