Unyson
Unyson copied to clipboard
Radio option in portfolio post metabox
I added two metabox for portfolio posts which comes with Portfolio extension. One is includes textarea and works well. The other uses radio it saves but it didn't return when editting post.
'portfolio_type' => array(
'type' => 'radio',
'value' => 'regular'
'label' => false,
'choices' => array(
'regular' => 'Regular',
'video' => 'Video'
),
),
So when you choose video from the radio option and save its ok. But while you editting post, radio shows regular as selected not video.
My Bad. I solve it, i was use name of option in another option. So its conflicts.