[resolved] Love the show_admin_column (5 posts)

  1. olyma
    Posted 2 years ago #

    Since this is the feedback section, I just wanted to leave some positive feedback and say: I love the new "show_admin_column"!!!!!

    I've been building some custom taxonomies for a custom post type and that little new feature just brings everything together in a most brilliant and seamless way.

    I am delighted! Thank you dev folk and everyone else who helped add that feature!!!!! :)

  2. wassem mansour
    Posted 2 years ago #

    can u show me example of yours full example

  3. olyma
    Posted 2 years ago #

    When you register a custom taxonomy, using the register_taxonomy function, see the codex:


    to create a custom taxonomy, for a custom post type you create using the register_post_type function, see the codex:


    if you were to visit the admin area where all of the entries of that specific custom post type were listed, you'd see whatever custom taxonomies you'd created listed in their own individual columns! See:


    It's the wellest!

  4. olyma
    Posted 2 years ago #

    It's just a very nice orientational administrative enhancement really, and one can turned it on or off within the register_taxonomy function itself.

  5. tifosi
    Posted 2 years ago #

    Nice and neat, but a half-baked solution. It doesn't support sortable columns and seems to ignore any attempt to use the old code to make them sortable.

    The show_admin_column arg to register_taxonomy appears to be a quick replacement for the filters: manage_{$post_type}_posts_columns & action: manage_{post_type_name}_posts_custom_column

    The new taxonomy column in the post-type list could be set as sortable by using the filter: manage_edit-{$post_type_name}_sortable_columns

    This is ignored now if using the new argument, probably due to program flow. An oversight or a bug?

Topic Closed

This topic has been closed to new replies.

About this Topic