Title: Filtering custom fields by meta key
Last modified: August 21, 2016

---

# Filtering custom fields by meta key

 *  Resolved [Ashworth Creative](https://wordpress.org/support/users/ashworthcreative/)
 * (@ashworthcreative)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/request-filter-by-meta-key/)
 * Occasionally, I’ll run into the following scenario: there will be two custom 
   post types, where a post from one post type refers to a post of the other type
   using an Advanced Custom Fields field to record post id(s). Whenever I create
   a column to show this association, I’ll set the “Field Type” to “Post Title (
   Post ID’s)”, which will correctly show the title(s) of the associated posts —
   however, the links in this column will always go to the edit screen for that 
   post, rather than filtering the current screen to only show posts with that type
   of association.
 * I have the same problem with radio/checkbox fields, where I’ll want to give users
   the ability to filter by whatever custom values I set through ACF.
 * I used to be able to create a kind of filter by using the before and after fields
   in Admin Columns to create custom links, but that stopped working in version 
   2.0 when HTML and quotes started getting escaped. Can such a feature please be
   added in future versions of Admin Columns?
 * [http://wordpress.org/plugins/codepress-admin-columns/](http://wordpress.org/plugins/codepress-admin-columns/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Tobias Schutter](https://wordpress.org/support/users/tschutter/)
 * (@tschutter)
 * [12 years, 4 months ago](https://wordpress.org/support/topic/request-filter-by-meta-key/#post-4337079)
 * You could overwrite the outputted value by using the ‘cac/column/value’ filter.
 * Check out this example: [http://www.codepresshq.com/documentation/codepress-admin-columns/filters/cac-column-value/](http://www.codepresshq.com/documentation/codepress-admin-columns/filters/cac-column-value/)
 * If you have any questions about this example just let me know.

Viewing 1 replies (of 1 total)

The topic ‘Filtering custom fields by meta key’ is closed to new replies.

 * ![](https://ps.w.org/codepress-admin-columns/assets/icon.svg?rev=1521754)
 * [Admin Columns](https://wordpress.org/plugins/codepress-admin-columns/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/codepress-admin-columns/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/codepress-admin-columns/)
 * [Active Topics](https://wordpress.org/support/plugin/codepress-admin-columns/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/codepress-admin-columns/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/codepress-admin-columns/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Tobias Schutter](https://wordpress.org/support/users/tschutter/)
 * Last activity: [12 years, 4 months ago](https://wordpress.org/support/topic/request-filter-by-meta-key/#post-4337079)
 * Status: resolved