On my site I have a single container which shows the most current post. I have a pill shaped span below it which shows the category. Currently this is just hard coded
i.e. <span class=”difficultyTag”>Beginner</span>
I would like to get this automatically so I don’t have to change it every time I write a blog post.
Thanks for writing in! Regretfully, your request is beyond the support we can offer as it would be outside scope. However you may check the following WordPress helper function to get the most recent post (https://codex.wordpress.org/Function_Reference/wp_get_recent_posts) and from there you can find the category.