Tagged: 

Viewing 3 reply threads
  • Author
    Posts
    • #7819
      Juan
      Participant

      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!

    • #7840
      Steve
      Keymaster

      @jfmejia– Please copy the actual field markup and paste it here.

    • #7845
      Juan
      Participant

      I no longer have the code. I’ve solved it in another way. Thanks anyway @Steve!

    • #7848
      onur89tr
      Participant

      I have same problem. Fix it please. I can’t continue to my project with the issue… 🙁

Viewing 3 reply threads
  • You must be logged in to reply to this topic.