cforms II User Forum

Registration is currently disabled.
Guest

FAQs

Login form protected by Login LockDown.


Lost password?
Advanced Search

— Forum Scope —

  

— Match —

   

— Forum Options —

    

Wildcard usage:
*  matches any number of characters    %  matches exactly one character

Minimum search word length is 4 characters - maximum search word length is 84 characters

Topic RSS Related Topics
Include cforms data in WordPress search results?
October 17, 2012
12:51 pm
frances
Guest

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

October 21, 2012
7:12 pm
Oliver
Munich, Germany
Admin
Forum Posts: 6400
Member Since:
March 6, 2005
Offline

Why 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.

October 21, 2012
7:41 pm
frances
Guest

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.

Forum Timezone: Europe/Berlin

Most Users Ever Online: 959

Currently Online:
24 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: 3750

Members: 1463

Moderators: 3

Admins: 2

Forum Stats:

Groups: 1

Forums: 4

Topics: 5349

Posts: 18720

Newest Members: juredujmovic, dreamkeeper, rajattyagi, wrokaa, lukass

Moderators: Paul (421), cnymike (8), sonika (95)

Administrators: Oliver (6400), Nicky (3)