Hi,
I want allow only select child nodes from a special hierarchical category (or the main category itself).
If have tested this base code and it works outside of the Meta Box configuration:
$terms_list = get_terms(array('taxonomy' => 'happyfiles_category', 'hide_empty' => false, 'parent' => 5));
print '<pre>' . print_r($terms_list, true) . '</pre>';
So I tried it with the 'query_args' key in this matter:
'query_args' => array(
//'taxonomy' => 'happyfiles_category',
'hide_empty' => false,
'posts_per_page' => - 1,
'parent' => 5
)
But unfortunately I get following messages in backend:
Notice: Undefined offset: 0 in /Users/hoefs/Essentiell/Websites/htdocs/dab-wp-base/wordpress/wp-content/plugins/meta-box/inc/walkers/select-tree.php on line 52
Notice: Trying to get property 'parent' of non-object in /Users/hoefs/Essentiell/Websites/htdocs/dab-wp-base/wordpress/wp-content/plugins/meta-box/inc/walkers/select-tree.php on line 52
Notice: Undefined index: in /Users/hoefs/Essentiell/Websites/htdocs/dab-wp-base/wordpress/wp-content/plugins/meta-box/inc/walkers/select-tree.php on line 70
Warning: Invalid argument supplied for foreach() in /Users/hoefs/Essentiell/Websites/htdocs/dab-wp-base/wordpress/wp-content/plugins/meta-box/inc/walkers/select-tree.php on line 81
Does someone have a clue how to fix this? Thanks in advance!
Juergen