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

  1. Takuro Hishikawa
    Posted 3 years 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();


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Custom Fields
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

  • RSS feed for this topic
  • Started 3 years ago by Takuro Hishikawa
  • This topic is not resolved
  • WordPress version: 3.4.2


No tags yet.