Adding custom field, when adding post. (1 post)

  1. trm1989
    Posted 4 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.