Support » Fixing WordPress » Adding custom field, when adding post.

  • I need to add a custom field in admin panel when adding new post. It must be dropdown menu that i form from xml. How can i do this without installing new plugins?

    $taxonomy = 'producttype';
    $terms = get_terms('producttype', 'hide_empty=0');
    echo '<select name="taxonomy='.$taxonomy.'&term" class="postform">';
    foreach ($terms as $term) {
      echo '<option class="producttype-option" value="'.$term->slug.'">'.$term->name.'</option>';
    echo '</select>';

    i tried to do this with adding new taxonomy, and it looks good, but does not save any changes.

  • The topic ‘Adding custom field, when adding post.’ is closed to new replies.