0
votes

enter image description here

Site: ArboCityNet

I would like to add the category of the post in the sidebar widget (It's a widget, which shows me the latest/newest posts). With the Plugin "what the file" I could see, what files are being used:

Files

I googled, what I have to add: Wordpress wp_get_post_categories

But I'm not sure, where to change or add this phrase of code to show the category of the post in the sidebar.

Can someone help me with that problem?

Thanks a lot!

1

1 Answers

1
votes

wp_get_post_categories() is a wordpress function you can add it to Functions.php file in your theme (This is coding thing create shortcode and then paste it to sidebar), But if you are Using Divi then there is pre-built widget available and you just need to Drag that on sidebar. On wordpress admin panel Navigate to: Apperance => Widgets Screenshot: https://prnt.sc/vc02h4

And drag this widget to the sidebar with is running on the website. Please let me know if it helps you!

Thanks