More Types
error message after adding fields - undefined index (2 posts)

  1. mrhayduke
    Posted 4 years ago #

    I have added one field to a custom post type (the first field added using more-fields) and when I go to the post type I see this error message where the new field should appear:

    Notice: Undefined index: fields in /home/yaddayadda/www/wp/wp-content/plugins/more-fields/more-fields-settings-object.php on line 289

    Not sure what to make of it. Thanks.


  2. DanClarkePro
    Posted 4 years ago #

    As you can see from the error, it is caused in more_fields, not more_types (although they are closely related)

    To fix it change, I would go into the referenced file in your post and change lines 287-289 from:

    do_action('mf_box_head', $box);
    foreach ((array) $box['fields'] as $field) {


    do_action('mf_box_head', $box);
    if(!is_array($box['fields'])) { $box['fields'] = array(); }
    foreach ((array) $box['fields'] as $field) {

    (Add the extra line into the gap between them)

    Hope this helps,


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • More Types
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic