• Resolved tinyCoder

    (@tinycoder)


    Hello, i’m very thanful for your work on such a plugin, it really saved me.

    I’m facing a problem with the taxomony select box, it is not saving the metadata to the post, and not loading it, while all other field types are working fine, but the taxomony one using the select_advanced style is not creating a new metadata field or load it.

    here is the code:

    array(
            'name' => __( 'البلد:', $prefix_translation ),
            'id' => "{$prefix_translation}country",
            'type' => 'taxonomy',
            'options' => array(
              'taxonomy' => 'category',
              'type' => 'select_advanced',
              'args' => array('hide_empty'=>false, 'child_of'=>12)
            ),
            'placeholder' => __( 'اختر من القائمة..', $prefix_belief ),
          ),

    + i’m using the latest version of wordpress and meta-box.

    thanks for helping 🙂

    https://wordpress.org/plugins/meta-box/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter tinyCoder

    (@tinycoder)

    Any help please?

    Plugin Author Anh Tran

    (@rilwis)

    Hi,

    The taxonomy field doesn’t save term ids in post meta. Instead, it sets terms for posts. You can see all terms using template tag get_the_term_list(). If you want to retrieve in Meta Box way, you can use rwmb_meta() function.

    If you need term ids to be stored in post meta, please use taxonomy_advanced field. It works exactly the same as taxonomy field, but save term ids in post meta.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Taxonomy select box problem’ is closed to new replies.