Support » Plugin: WP Easy Post Types » New Post Type Icons (WP 3.8)

  • When adding new posts, I found that there are no icons. I was able to fix this by adding a line of code into the main custom-type.php file.

    In “public function saveField()”, where we are saving the new post types, we want to tell WP that the menu_icon needs to be set to ”, so that the default system icon will be applied.

    $this->fields_info['fields'][$_POST['content_type']][$_POST['field_name']]=array(
                'field_name' => $_POST['field_name'],
                'name' => $_POST['name'],
                'type' => $type,
                'show_list' => $_POST['show_list'],
                'extra' => $fieldType->extra($_POST),
                'menu_icon' => '');

    http://wordpress.org/plugins/easy-post-types/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘New Post Type Icons (WP 3.8)’ is closed to new replies.