I'm dealing with a small but frustrating problem which I thought was going to be easy and has turned out not to be.
I am using WordPress to create a sortable to-do list at work. I have created a category called "To Do" (with the slug as simply "todo"), with a child category for each employee ("JN", "AA", etc.). I have the Quick Post Widget plugin installed and activated on the front end. By default it creates a checklist of all categories on the site, and when you post something using it you can select one or more.
What I am trying to do is restrict the category checklist to only the To Do category and its children. The checklist is created from within the plugin using the following code:
<?php if ($cat_list_type == 'checklist') { ?>
<div id="quick_post_cat_checklist" style="<?php echo $cat_checklist_style; ?>">
<ul id="cats">
<?php wp_category_checklist(0, 0, $_POST['post_category'], false, null, false);?>
</ul>
</div>
<?php } ?>
Unfortunately I can find almost no documentation on the wp_category_checklist() function. I've changed a few arguments on the function call based only on looking at the code in template.php, but none of the changes have changed the way it operates at all, which is confusing to me.
Can anyone explain how this works, or if there's a better workaround to accomplish this? My end goal is to have a quick post box with two or three different category selection areas, one for employee name, one for job name, etc.
Thanks!