I'm very new to coding so please bear with me. I am trying to show the categories of which my post came from on the post excerpt. I have added a photo to demonstrate what I mean:
Here, the post "surgical sightings" shows the parent category "Education" as well as the 'sub-categories' under Education. I was wondering if there was a function that allows me to do this? Right now my post only has the title of the post, the date and an excerpt like this. Ideally I could add the categories under which the post is under as well.
I have spent an hour or so looking up php and css and have no idea how to edit these on my Wordpress site. Any help would be much appreciated thank you!
Edit: Picture showing drop-down categories on menu.
Edit #2: Folder of my theme's php folder structure (Nisarg)