I want to create a posts widget and be able to select categories
I have recently written a widget that Gets all the terms from the build in taxonomy category and adds them in dropdown in the widget Stores the selected category and uses that category in a custom WP_Query to get and display posts from the selected category You can look through it and adjust as needed: … Read more