Unyson
Unyson copied to clipboard
Catagory value/name returns null
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?
sorry got it . My fault It should be 'post_catagory' instead of 'post-catagory'