Admin Columns
[resolved] Filter an array through cpac_get_column_value_custom_field (3 posts)

  1. phatoz
    Posted 3 years ago #

    How do you filter an array through the cpac_get_column_value_custom_field filter?

    I have 4 custom column instances/results and only 1 instance is being filtered correctly. The other 3 don't show.

    I sure wish there were more examples available in the documentation or through search results.


  2. phatoz
    Posted 3 years ago #

    After a 12+ hours of trial and error.
    Found the solution to this one.

    The solution to the problem is in the description, below...

    Using Advanced Custom Fields (ACF) in a custom post. One of the ACF custom fields is $post_object; and always returns and array of $ID;'s

    Under the settings for the custom columns (CAC) set the Field Type: to Post Title (Post ID's).

    I love love love CAC - I have supported the author monetarily for their efforts.

    But please please please provide more documentation, for pete's sake!

    It's galling to think how simple the solution was. Went all the way around the block to reach my thumb, as it were.

  3. Tobias Schutter
    Plugin Author

    Posted 3 years ago #

    I was about to ask which field type you had selected, but you have figured it out. Sorry that it took you so long. On a good note, we are currently working on a Admin Columns website with documentation and examples :)

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Admin Columns
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.