Can we do without a new plugin? if simple to do.
Yes, sure – simple or not depends on your experience, it’s certainly not complicated.
This described the loop pretty well :
https://wpbeaches.com/output-a-custom-taxonomy-loop-in-wordpress/
But to be clear you should be using the WP_Term_Query query class :
https://developer.wordpress.org/reference/classes/wp_term_query/
You can also use get_terms, like this :
https://developer.wordpress.org/reference/functions/get_terms/#comment-288
and there is already a function called wp_dropdown_categories which presumably you can follow to include terms :
https://developer.wordpress.org/reference/functions/wp_dropdown_categories/
Once you have your function, you can just add to your sidebar / blog template file – or try registering a new widget. It’s straight-forward :
https://www.wpbeginner.com/wp-tutorials/how-to-create-a-custom-wordpress-widget/
Thank you corrinarusso.
I will try it asap and update.
-
This reply was modified 2 months, 2 weeks ago by
Sonu Saini.