Home › Forums › Feedback › Taxonomy labels and create/save tax modal › Reply To: Taxonomy labels and create/save tax modal
Hi John,
Thanks for your extended feedback and your vision on the makes and models part. Basically this is already implemented as is as the case described above within a single taxonomy in a parent child construction.
I managed to change the text for the tooltip and title from the popup thanks to your valuable feedback. Much appreciated, thanks!
So i have only 1 thing to figure out and that is altering that parent selector field for the taxonomy.
I have been digging true the fields file at “acf/includes/fields/class-acf-field-taxonomy”.
So basically i need to be able to modify/extend the class “acf_field_taxonomy” / function “ajax_add_term” and change the behavior for field key X and Y.
I will have some sleep and see if i can come to somekind of solution 😀
if( is_taxonomy_hierarchical( $field['taxonomy'] ) ) {
$choices = array();
$response = $this->get_ajax_query($args);
if( $response ) {
foreach( $response['results'] as $v ) {
$choices[ $v['id'] ] = $v['text'];
}
}
acf_render_field_wrap(array(
'label' => __('Parent', 'acf'),
'name' => 'term_parent',
'type' => 'select',
'allow_null' => 1,
'ui' => 0,
'choices' => $choices
));
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.