Quantcast
Channel: WordPress.org Forums » All Posts
Viewing all articles
Browse latest Browse all 119528

hissy on "[Plugin: Advanced Custom Fields] bug: post_type is always "post" in Acf::get_input_metabox_ids"

$
0
0

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/


Viewing all articles
Browse latest Browse all 119528

Trending Articles