WordPress.org

Ready to get started?Download WordPress

Forums

Custom Content Type Manager
[resolved] Columns of Arrays (4 posts)

  1. rileypaulsen
    Member
    Posted 1 year ago #

    When a custom field contains a repeating element, and you specify CCTM to customize columns in a post type with that field value, it just prints out "Array."

    Could it instead do a quick check for array, and if so, implode() the values so they all can be displayed?

    Even better, if it's a relation, could it print out an imploded list of the title of said related posts? Doing the above without this would simply result in a list of post IDs, which isn't very helpful for end users.

    As always, thanks for the great work!

    http://wordpress.org/extend/plugins/custom-content-type-manager/

  2. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    This is tricky -- there's a feature request that's related to this (https://code.google.com/p/wordpress-custom-content-type-manager/issues/detail?id=456 and possibly another that I can't find right now), but specifically what I want to avoid throughout the CCTM is the slopfest that is the norm with so much wordpress stuff, and coming up with a clean way to customize the HTML when the columns are customized has been a tall order. So the current implementation of custom columns will use the default output filter for any column, so if you use the to_link as your default filter, that's what gets used in the custom column. If the array value is not what you want, then select a different default.

  3. rileypaulsen
    Member
    Posted 1 year ago #

    Okay, I can respect not wanting to clutter things up. Thanks for the info, and even more thanks for the plugin!

  4. fireproofsocks
    Member
    Plugin Author

    Posted 1 year ago #

    Sure -- please chip in on that feature request. I'd kinda like to get a good sampling of what people need before I sit down and implement a solution. Thanks for your feedback!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic