Filtering custom fields 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?
The topic ‘Filtering custom fields by meta key’ is closed to new replies.