Home › Forums › Product Support Forums › Ajax Search Pro for WordPress Support › Open the PDF file after searching it with the customised Post name › Reply To: Open the PDF file after searching it with the customised Post name
September 11, 2023 at 2:32 pm
#45342
Keymaster
Hi,
Thanks for the details, it helps a lot!
In that case I believe you want to choose the “Sicherheitsdatenblätter” post type on the Search Sources panel for searching – and not the actual media files.
Thenb use this custom code to change the URL of the results to the custom URL field from ACF. All you need to change there is the $meta_key variable to:
$meta_key = 'Link zur Datei';
To open the results on a new panel, use this option.