Use the_category();
on your template. It also supports $separator
parameter so you can use your desired separator.
Example: <?php the_category( ', ' ); ?>
will separte categories with commas.
By the look of your theme folder structure, you should add <?php the_category( ', ' ); ?>
on child-theme
=>template-parts
=>content-excerpt.php
. Add it to line 22. If you want it only for the excerpt posts, use it on line 26.
Related Posts:
- Inject post (from specific category) between posts in Loop
- Looking to exclude blog posts from category Previous/Next buttons
- How to display related posts from parent category
- Use template for posts with a particular category grandparent
- how do I get a specific post from a post with a subcategory in WP
- How to show only subcategories in parent category not parent category?
- Get latest post from all categories except one
- Add new post in existing categories using wp_insert_post
- Displaying list of posts in category page
- Do not duplicate posts with multiple categories in multiple loops
- Loading Posts & Category with Ajax
- Pagination at category doesnt work with same name of page
- How to show categories and date on posts
- Displaying 3 Category Posts differently
- Unable to get Post Category Name and URL
- Trying to see if page is category or single and displaying title with appropriate heading tag
- Display post of specific category on page
- What does the token %1$s in WordPress represent [closed]
- Handling error states with admin_post
- Archive listing of posts by publish year (multiple years)
- Display all posts in current category
- Insert code when users come from an specific referer
- How can I set custom order use this function
- Check if Product is in a Specific Category in Functions.php
- How to migrate the posts from an old custom legacy blog to a new WordPress website?
- Get_the_author doesn’t return author name
- Category Thumbnail Display – How to display ONLY the main Category
- How can I use wp_query to show all product data using just the products ID?
- Swapping wp_dropdown_categories function with wp_category_checklist
- Loop through categories and display posts title under each dropdown
- How to store post ID’s in cookie or session to display the same posts later
- how to save selected option in variable for rest api category filter
- Recent Posts Not Showing Only On A Specific Category Page [closed]
- how to show only specific category for a template
- Display related posts without a plugin
- Making (and edit existing) posts with ID included
- How to array only one key from another array
- Displaying posts based on category
- Get categories names as an array to use it in theme settings
- How to get the last category name of a child category?
- WordPress query undefined offset in loop
- WP_Query: getting posts where custom field exists
- Increment paged on WP_Query
- How to separate categories with commas?
- Show all tags within a category?
- get post id from wp_insert_post for get_template_part
- Alphabetically Ordered Category in WordPress
- Displaying content on posts page based on category
- how to make an array of post id’s in is_single
- How to get current category
- array_rand not working correctly?
- WooCommerce: Display product categories to make IF statement
- WP_Query() load selected post
- Unable to render custom field after attempt to generate a list of recent post in page template
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Show parent categories of the current category
- How to check if a category has a parent and child categories?
- Get category id when SEO URL is turned on
- Display latest post from WordPress Featured Category that is also in X,Y,or Z categories
- Categories Listing and Highlighting current category item
- Woocommerce Custom Meta Boxes- How to only display if they actually have content
- Display Sibling WooCommerce Product Categories on Archive Page
- understand what code is doing when prepending /blog
- Advanced Query posts
- display the months of a specific category
- Add Custom Category Description When Empty
- My worpress search page is showing no results
- duplicate posts with ajax load more wordpress
- List sub categories and corresponding posts of a parent category
- Dropdown category field inside repeatable metabox
- How to display 8 posts in four columns and 2 rows on a carousel slide?
- Inside Array – “unidentified index” error with “prepare was called incorrectly” despite not calling the prepared statement with wordpress [closed]
- Time Stamp In A WordPress Post Title That Does Not Keep Refreshing
- How to Link to category titles if it is in the single post content?
- How can i show specific Category List?
- How to show category just on specific pages?
- Closing Comments conditionally in comments.php
- How to filter specific element of an array in wordpress/php?
- Having trouble with customizing blog posts on the home page
- Related Posts: if there is no category use tags
- How do if all posts has this category ID then do this
- Get current_post in reverse order with pagination
- Getting error in sql query
- How do I get the featured post to share on Social Media and show on Individual Post pages?
- List categories assigned to a post
- Insert div after every three posts in home.php [duplicate]
- PHP tag in post content makes wordpress go crazy
- Dynamically Create Posts Via XML File
- Basic PHP question (displaying post title over thumbnail) [closed]
- insert thumbnail image from php script
- Post from front end form to post_meta
- media_handle_sideload() returned post_id being incremented
- Saving Post redirects to 404 page when php $_GET variable in post body
- category & sub category order issues in wordpress
- Fix incorrect related posts code snippet
- Display a list of posts corresponding to a category
- How to create categories out of a list of words?
- Is there a way of displaying related posts from lowest hyrachical order (lowest child category to parent category)
- WooCommerce: write featured image dimensions to custom fields in product’
- transition_post_status hook, works – but not if the post is new