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

  1. rileypaulsen
    Posted 2 years 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!


  2. fireproofsocks
    Plugin Author

    Posted 2 years 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
    Posted 2 years ago #

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

  4. fireproofsocks
    Plugin Author

    Posted 2 years 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

  • Custom Content Type Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic