WordPress.org

Ready to get started?Download WordPress

Forums

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

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

    http://wordpress.org/extend/plugins/codepress-admin-columns/

  2. phatoz
    Member
    Posted 1 year ago #

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

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

    Symptoms:
    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

    Solution:
    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
    Member
    Plugin Author

    Posted 1 year 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

About this Topic

Tags

No tags yet.