List categories with checkbox in Wordpress Options?


Question

How would I go about displaying all of a site’s categories in checkboxes in my options panel?

I can get a dropdown select menu to work, I just have no idea how to implement checkboxes.

Code Here from Net Tuts: http://net.tutsplus.com/tutorials/wordpress/how-to-create-a-better-wordpress-options-panel/

http://pastie.org/885320

Thanks in advance.

1
2
3/24/2010 8:43:51 PM

You can use wp_terms_checklist function (http://codex.wordpress.org/Function_Reference/wp_terms_checklist)

2
10/10/2012 2:57:40 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon