[ad_1]
Hello.
I have a CPT with a custom field (ACF). Basically the custom field is a reference code, for example “EC 31000 AMZ/ACRA 142008” and I would like to be able to search in the list of the posts type a posts with a specific reference.
[ad_2]
I wanna make sure I understand your question. Are you wanting to have like a drop-down menu + search to search by a CPT custom field in some admin page? Or is this supposed to be a search bar on the front end? Or in a template?
Add the field as a column in the admin CPT post list – and it becomes sortable/searchable