Today I was working on a site that uses the WordPress Business Directory Plugin (WPBDP). I needed to link a phone number field for mobile devices but couldn’t find anything useful in the plugin’s documentation… so I did what I always do and dug through the plugin source.
I found several useful WP hooks, and was able to write a quick function to do what I wanted. The code below goes into a theme’s functions.php file or a simple plugin.
This assumes that the ID of the phone field is 6. The field’s ID can be found by editing the field and looking for the ID in the URL.