The Community forums are being phased out in favor of a new Slack group.
Add your email address below to get an invitation to join the community slack group
Search Results to include Views
When I do a search, it does not include the data I know is in a form of 720+ entries. How do we include that data in search results?
June 21, 2018 at 2:13 pm
Is it the built in search or a custom search you created via a form?
June 22, 2018 at 3:04 pm
It's just the basic search form that comes with standard WordPress. I don't know how to incorporate the Formidable views into the search results.
June 22, 2018 at 8:33 pm
What is the data you are expecting and what is the search key you are entering?
September 5, 2018 at 12:38 pm
Not trying to hijack Eric's thread but I think he may be asking about searching a nested view like the Trails demo (https://formidableforms.com/demos/trails/). This demo has two forms (Trails and Comments), each with their own view. The view from the first form includes a nested view from the second form. Since they are related, it would be nice if the basic search would find results from entries of both forms but it does not appear to do so. To test this, I added a Comment entry that included the word "palms". However, a search for the word "palms" only found the one Trails entry that included the word "palms" but did not find the Comment entry that I added.
September 5, 2018 at 1:19 pm
We have a few possibilities in this case.
Basic search shortcode parameters - [frm-search views="x,y,z"] (I've not tested this)
Create an advanced search in which we can use parameters for searching through the data.
Create a custom post type from an entry and then rely on the wordpress standard search to return the results.
Those are listed in order of least to most complicated.
September 5, 2018 at 1:31 pm
Hello Bobby - Thank you for your reply.
The problem is that the form data is not part of the Post and Page data, as far as the main "search" feature of WordPress is concerned.
I was hoping there was a start way to create 1 search which could look into the Formidable Forms views AND the site's pages and posts, and then spit that out.
I created a work around that basically first searches the site's pages and posts )(standard search) and then added an "advanced search" which then searches the data views on the form data.
So… if there is any way to make 1 search that looks in pages, posts, and any specified views, I will be grateful to use that. But I can't figure out if this is technically possible.
September 5, 2018 at 1:45 pm
https://wp-snippet.com/snippets/include-specific-custom-post-types-wordpress-search-results/
The only way I can think of that possibly working without complex coding is by adding "view" (not sure if that is the code specific terminology), which I believe is a custom post type, to the search function maybe with something like I have linked above.
Discussion closed.