Hierarchical custom post types "display_column" not working.
Hi,
I've had an issue with custom post type registered with hierarchical attribute to on. The display column content would not show up with those with this attribute set to true. Everything works fine if I set the attribute to false. I have been able to resolve the issue myself by modifying the following (in custom-metadata.php):
line 178
from : $column_header_name = sprintf( '%_posts', $object_type );
to : $column_header_name = sprintf( '%s_posts', $object_type );
line 198
from : add_action( "manage_{$column_content_name}_custom_column", $custom_column_content_function, 10, 3 );
to : add_action( "manage_{$column_header_name}_custom_column", $custom_column_content_function, 10, 3 );
line 200
from : add_filter( "manage_{$column_content_name}_custom_column", $custom_column_content_function, 10, 3 );
to : add_filter( "manage_{$column_header_name}_custom_column", $custom_column_content_function, 10, 3 );