you’ve already had a comment about the lack of detail, so I’ll try and guess what you want to do.
Assuming you’re inside ‘the loop’ and your title is being echo’d out with:
<?php the_title(); ?>
..then the easiest way for you to show the title first is to do this:
<?php
$catobjarray = get_the_category();
if($catobjarray[0]){ echo $category[0]->cat_name;}
?>
Caveat of this method: As a post can belong to more than one category, this code will only display the first cat the post is in.
Have a look at the codex for get_the_category() HERE.
Related Posts:
- Add Category name to Post Title (h1)
- I want to show category in the post title , how can I do
- Change Post Title For Specific Category
- How to select a category automatically based on a word in WordPress post title?
- Create/Set Category as Title of Post
- Post Category link is same with Page link
- Is it possible to have different header style blog titles in different categories?
- How to add category to: ‘wp-admin/post-new.php’?
- Use category base slug in posts’ permalink
- Setting Custom Sort Order of Posts within a Category
- Different number of posts in each category
- Display the latest post from a category in a page
- How to show list of posts by author and category?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- Get title of post without using the_title();
- How to control which category will be picked for the slug of a post?
- get_the_term_list by hierarchy order
- How to change the layout and styling of posts according to their category in WordPress?
- Add default content to post (for specific category)
- Query only Posts from Both of Two Category?
- display sub categories assoccited with each post in a category archive page
- Display most recent post in category instead of archive?
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- get_post_type_archive_link(‘post’) returns current category archive
- Permalink Settings: optional settings doesn’t apply to editor
- Get user’s most published categories
- Conditional that checks if a current category has any subcategory with posts
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Exclude posts from featuring
- Articles are text-only in any “Category” instead of HTML
- How To Remove Certain category Posts From the Blog Page
- Add icon/badge next to posttitle of specific category
- Get current category id from post page wordpress
- Saving category to a post, before publishing the post
- Exclude category from
- Assign category to new post via URL
- Stop users posting into category while still seeing contents of the category
- Category Page Template not Showing Posts
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- WordPress custom Query for Posts in Category display posts multiple times
- Categories list into registration form
- How do I change the core post search algorithm? Where is it found/constructed?
- Excluding posts not working
- Add title for previous and next posts to Yoko Theme
- Limit the number of posts a category can have – newest post goes in, oldest one drops out, possible? plugin?
- Remove current category from post but display all others
- How to get links to the last N posts in a specific category?
- How do I show posts from another wordpress installation?
- Relative number of post in category
- How to get post with associated categories and tags names instead of ids with rest api?
- Display a mixed list of posts and media
- Why in my query is display two title?
- Remove Featured Image from posts in specific category?
- Sidebar limiting to 10 posts?
- How to list post as buch of category, and all of them
- How can I add a page that shows posts from a single category?
- Post in bulk based on category template
- Remove subcategory slug from url
- Can I show category name in url for only one of my categories?
- Automatic duplicate/copy of post to a related page in WordPress
- Is there a way to categorize a list posts all at once?
- Yoast breadcrumb URL shows category instead of the page
- On the online version of my blog posts disappear
- Current post categories and subcatecories outside of the loop
- Query prints posts without specific categories
- Foreach issue in get_posts function
- More Than 50K Categories and WordPress Admin Panel Stop Showing Categories and Posts
- Re-order Category Meta-data
- Custom post styling per category?
- post categories – how to show only categories with a specific parent id
- Creating a “category” of featured posts
- How do I make it so that new posts within a certain category go into a certain page?
- List Authors For Current Category
- List posts of assigned categories in list of all categories on single.php
- How can I choose and change a post title at random from an array when it is published?
- Assign specific ads to specific categories/posts
- Get post title by Alphabet
- find posts with exactly 3/4 categories
- Use radio buttons & checkboxes for post categories
- Displaying only posts from a certain category on my custom page template
- WP_Query: Fetch posts that are in (category1 and not in category2), OR posts that are not in cagegory1
- Add default content to post (for specific category)
- List posts that are in the same category as the current post title
- display only the title of the post into a certain category
- Multiple blog “feeds” in a single blog each with distinctly styled post pages
- How to get pagination working with “Pending” Posts
- How do I show the post title if an advanced custom field hasn’t been used?
- Deleting first four characters from all Post Titles
- clicking on page title
- Post’s arent displaying
- Show with echo if a post has two or more categories
- How can I get on the same row two post of different categories?
- Title displaying multiple times
- Custom Post-Rename Function Does Not Function in WordPress 6.x
- wordpress category Description not allowed tag
- Sort Posts Alphabetically Based on Specific Category (Divi)
- How to get a list of all posts and their categories?
- Show posts assigned to multiple categories in current category page
- How to display related posts from the same category?
- Mismatch between posts count and actual list in admin posts page