WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
bug: post_type is always "post" in Acf::get_input_metabox_ids (1 post)

  1. hissy
    Member
    Posted 1 year ago #

    I think this is a bug, when you change the taxonomy in editing custom post type, unexpected meta boxes are disappeared.

    here is my solution

    // create post object to match against
      $post = isset($overrides['post_id']) ? get_post($overrides['post_id']) : false;
    
    + // fix post_type value
    + $overrides['post_type'] = get_post_type($post);
    +
      // find all acf objects
      $acfs = $this->get_field_groups();

    http://wordpress.org/extend/plugins/advanced-custom-fields/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.