Hey guys,
I have a custom taxonomy (videos), and suggest_field using fl_as_terms isn’t working.
Here is my code:
FLBuilder::register_module('ShowCat', array(
'general' => array( // Tab
'title' => __('General', 'fl-builder'), // Tab title
'sections' => array( // Tab Sections
'general' => array( // Section
'title' => __('Settings', 'fl-builder'), // Section Title
'fields' => array( // Section Fields
'suggest_field' => array(
'type' => 'suggest',
'label' => __('Find Video', 'fl-builder'),
'action' => 'fl_as_terms',
'data' => 'videos'
),
'select_field2' => array(
'type' => 'select',
'label' => __('Which Category is this in?', 'fl-builder'),
'default' => 'residential',
'options' => array(
'residential' => __('Residential', 'fl-builder'),
'commercial' => __('Commercial', 'fl-builder'),
'finance-101' => __('Finance 101', 'fl-builder'),
'hear-from-the-experts' => __('Hear From The Experts', 'fl-builder'),
'in-the-news' => __('In The News', 'fl-builder'),
'our-team' => __('Our Team', 'fl-builder'),
)
),
)
)
)
)
));