WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Love the show_admin_column (5 posts)

  1. olyma
    Member
    Posted 1 year 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. was955
    Member
    Posted 1 year ago #

    can u show me example of yours full example

  3. olyma
    Member
    Posted 1 year ago #

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

    http://codex.wordpress.org/Function_Reference/register_taxonomy
    and
    http://codex.wordpress.org/Taxonomies

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

    http://codex.wordpress.org/Function_Reference/register_post_type
    and
    http://codex.wordpress.org/Post_Types

    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:

    http://make.wordpress.org/core/2012/12/11/wordpress-3-5-admin-columns-for-custom-taxonomies/

    It's the wellest!

  4. olyma
    Member
    Posted 1 year 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
    Member
    Posted 1 year 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