This topic contains 3 replies, has 2 voices, and was last updated by Ernest Marcinko 6 years, 10 months ago.
- AuthorPosts
- January 27, 2017 at 12:51 am #11741
Hi there
I’ve just bought the Ajax search plugin and am looking to incorporate it with the links library at the URL above (homeopathyeurope.org/links) – are you able to advise if this is possible, or the easiest way to replicate the links themselves so they can be displayed with the search tool?
Thanks
January 27, 2017 at 11:23 am #11744Hi!
I’ve looked up the plugin you are using, and it is possible – as it cleverly uses custom post types to store links.
Use the following configuration:
1. On the General Options -> Sources panel, select the bms_link custom post type: https://i.imgur.com/ZWfd2Ng.png
2. On the same panel, choose the _bms_link_description and _bms_link_url custom fields to search as well: https://i.imgur.com/qPqMY7H.png3. To fix the result URLs, add this custom code to the functions.php file in your active theme directory:
With this configuration I was able to get link results from the library with the correct URL. I hope this helps!
Best,
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
January 27, 2017 at 2:50 pm #11745Thanks for the reply – very helpful.
I don’t seem to be able to have the option to select _bms_link_description_ and _bms_link_url. Do you know why this could be?
Sorry for any inconvenience.
Chris
January 27, 2017 at 3:03 pm #11746Hi Chris,
Not sure why, but you can just turn on the Search all custom fields option instead: https://i.imgur.com/WxeZr0o.png
Best,
It will work that way as well.
Ernest Marcinko
If you like my products, don't forget to rate them on codecanyon :)
- AuthorPosts
You must be logged in to reply to this topic.