Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Custom Search Linking › Reply To: Custom Search Linking
April 11, 2018 at 10:57 am
#17476
Keymaster
Hi!
This should be doable, but with a custom code only. I have constructed a custom filter function, that will execute during the search post-process, and get the ID from the custom field, then get the link to the attachment file based on that id. Just change the $custom_field variable value to the custom field that contains the attachment ID.
Add this custom code to the functions.php in your theme/child theme directory (copy from line 3 only!). Before editing, please make sure to have a full site back-up just in case!
I hope this helps.