Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hierarchical custom post types "display_column" not working. #58

Open
jonathanbardo opened this issue Feb 28, 2013 · 0 comments
Open

Hierarchical custom post types "display_column" not working. #58

jonathanbardo opened this issue Feb 28, 2013 · 0 comments
Labels

Comments

@jonathanbardo
Copy link

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 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant