Skip Navigation

[Resuelto] Search a custom field in admin view

This support ticket is created hace 5 años, 3 meses. There's a good chance that you are reading advice that it now obsolete.
Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Este tema contiene 0 respuestas, tiene 1 mensaje.

Última actualización por Bob Dowdy hace 5 años, 3 meses.

Asistido por: Shane.

Autor
Mensajes
#1317487

Hello,

I am trying to enable the admin search to search the custom field "wpcf-listing-id" of the content type "property".

I have looked at this ticket - https://toolset.com/forums/topic/search-custom-fields-in-admin-view/ - which led me to this non-woocommerce tutorial: enlace oculto

Unfortunately it doesn't work when I add it to functions.php, and breaks the admin search. In the php code I replaced the content type 'cars' with 'property' and '_car_vin` with 'wpcf-listing-id' as the meta key.

I would appreciate any help you could provide.

Thank you.