Open fariskas opened 5 years ago
ACF Better Search doesn't support selecting custom field types from its settings page. However you should be able to manually update the setting to include the custom fields types.
update_option('acfbs_fields_types', [
'text',
'textarea',
'number',
'email',
'url',
'file',
'wysiwyg',
'select',
'checkbox',
'radio',
'qtranslate_file',
'qtranslate_image',
'qtranslate_post_object',
'qtranslate_text',
'qtranslate_textarea',
'qtranslate_url',
'qtranslate_wysiwyg',
]);
worked a treat! thanks!
edited settings.php in the acf-better-search
'text' => __('Text', 'acf-better-search'),
'textarea' => __('Text Area', 'acf-better-search'),
'number' => __('Number', 'acf-better-search'),
'email' => __('Email', 'acf-better-search'),
'url' => __('Url', 'acf-better-search'),
'file' => sprintf(__('File %s(it doesn\'t work in lite mode)%s', 'acf-better-search'), '<em>', '</em>'),
'wysiwyg' => __('Wysiwyg Editor', 'acf-better-search'),
'select' => __('Select', 'acf-better-search'),
'checkbox' => __('Checkbox', 'acf-better-search'),
'radio' => __('Radio Button', 'acf-better-search'),
'qtranslate_wysiwyg' => __('qTranslate Wysiwyg Editor', 'acf-better-search'),
'qtranslate_text' => __('qTranslate Text', 'acf-better-search'),
'qtranslate_textarea' => __('qTranslate Text Area', 'acf-better-search')
I'm using this plugin with acf. I realised that searches made with the default wp query doesnt work with text from qtranslate acf fields.
i've also used this : https://wordpress.org/plugins/acf-better-search/ And it only works for normal acf fields and not acf-qtranslate fields.
Any idea ?