Custom results from external sources
-
Hi,
I’m building a site for a public library and many users are using the site search expecting to get results from the public catalog (opac). So they are searching for author names and book titles and, of course, getting no results. So I’m trying to extend the WP search functionality to also search the catalog.
I already got the PHP code to do this (it’s just some SOAP calls), but I’m stumped on how to integrate with WP (not much experience with WP code, but I’m willing to learn).
So my problem is twofold:
– how to extend the default search function to also return my custom data (and what should be the format of the returned data); it will be just a list of links.
– how to split the search results page in two, displaying the default results on one side and my custom results on the other (this is a lower priority)
I’ve been reading up on custom searches, but almost all of them focus on creating search forms, using custom taxonomies and creating custom search results page templates.
Any help would be appreciated, including RTFMs (pointing to the relevant FMs).Also the code will end up on github (GPLed). Will post the link if anybody requests it (don’t want to pre-advertise).
Thanks.
- The topic ‘Custom results from external sources’ is closed to new replies.