Hey everyone,
i’m having problems when i try to save a ‘select’ with add more.
Im loading custom taxonomy terms into a select to display the ones i choose.
When i save, some of the terms are repeating. When i remove all and choose nothing and then save, the result is that one of the previous terms is always selected. Every time i remove all, the same term appears selected.
This is my code:
<?php
/*
Title: Temàtiques
Post Type: page
Meta box: true
Template: home
Order: 0
*/
piklist('field', array(
'type' => 'select',
'field' => 'tematiques',
'label' => 'Escollir Temàtiques',
'columns' => 12,
'add_more' => true,
'choices' => array('' => '— Escollir Temàtiques —') + piklist(get_terms(array(
'taxonomy' => 'tematica',
'hide_empty' => false
)),array('term_id','name'
))
));
Any ideas on what im doing wrong?
thanks!