Unyson icon indicating copy to clipboard operation
Unyson copied to clipboard

Catagory value/name returns null

Open webangon opened this issue 11 years ago • 1 comments

Hi I am using to pick catagories . Here is the code 'post-catagory' => array( 'type' => 'multi-select', 'label' => __('Select post catagory', 'fw'), 'population' => 'taxonomy', 'source' => 'category', ),

This saves catagory names in admin panel . But when I try to get the catagory value it returns null. I am using this in shortcodes. In view.php $cat = $atts['post-catagory']; var_dump($cat); But it returns null. Am I wrong somewhere?

webangon avatar Mar 19 '15 19:03 webangon

sorry got it . My fault It should be 'post_catagory' instead of 'post-catagory'

webangon avatar Mar 19 '15 19:03 webangon