Topic RSS
Related Topics
12:51 pm
I am working on a site where people can submit recommendations for a literary award. The recommendations are then output into a searchable, sortable table using the DataTables plugin, all of which works fine.
What I haven't been able to find a simple solution for is how to include this in the standard WordPress search results. Is this possible (e.g. with custom query)? Has anyone here done this, or can point me towards an example? I've looked through the forums and haven't found anything, and also looked at a lot of different examples for including non-standard data in search results, but I would really appreciate any suggestions on how this may be done.
Thanks, Frances
7:12 pm
March 6, 2005
OfflineWhy would you want that data to also be searchable?
I'd probably setup a specific search form/field & add some custom code that uses the cforms API call to search for form entries and have the results be printed back to that same page.
7:41 pm
For a couple of reasons. As I said, I'm using cforms for user-submitted recommendations for a literary award, and the organisation running the award had some specific requests in terms of this which only cforms could do (a long list of various things).
What was important is these recommendations (author title, etc and comment from recommender) would also appear on the site, for which I'm using datatables to manage.
You can see this here: http://tiptree.org/recommend-works-for-the-2012-james-tiptree-jr-award
The thing is data in the tables turns up in google search results, and as part of making all the award information on the site properly accessible, I was hoping to be able to use the standard WordPress search to also pull in the cforms data.
From Google site:tiptree.org Blue Feather
But on the site itself: http://tiptree.org/?s=Blue+Feather&submit.x=0&submit.y=0&submit=Search gives nothing (as a note this is the current old theme which is being replaced shortly)
I'm using the Relevanssi plugin and have written a function to deal with pulling in data from custom fields using wpdb, and I was thinking there would be a way to do this getting the data from the cforms tables but unsure how to go about this.
Thanks for your help.
Most Users Ever Online: 959
Currently Online:
50 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
tracedef: 43
mores: 21
Gyrus: 20
frozenwaste: 18
asuffredini: 15
photoworks: 14
Member Stats:
Guest Posters: 3568
Members: 1464
Moderators: 3
Admins: 1
Forum Stats:
Groups: 1
Forums: 4
Topics: 5172
Posts: 18414
Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass
Moderators: Paul (421), cnymike (8), sonika (95)
Administrators: Oliver (6398)
FAQs
Home
Add Reply
Add Topic
Quote









