Forums › Forums › Search & Filter Pro › Results by Author
Tagged: author, search results, V3
- This topic has 15 replies, 2 voices, and was last updated 4 years, 11 months ago by Trevor.
-
Trevor(Private) December 30, 2019 at 3:18 pm #230000
Are you using a text search box to do this? If yes, then our plugin does not directly allow you to do text searches of individual Post Meta (custom fields) and Taxonomy (Category, Tags and Taxonomies) data/terms. The Search & Filter Pro Text Search field uses the standard WordPress search, so looks only in the Post Title and Content. To help you control this better, on the form’s Advanced settings tab you will see 2 settings for Relevanssi.
The documentation for this is here:
https://www.designsandcode.com/documentation/search-filter-pro/3rd-party/relevanssi/
You would need to install and activate the free Relevanssi plugin as well. You will need to set this up on the Indexing tab, look for ‘Author display names’ -> ‘Index the post author display name’
I think that might work.
Anonymous(Private) December 30, 2019 at 4:06 pm #230014Thank you, I added Relevansi and *think* that provided the functionality that we needed.
We have a general search box in the menu of the site.
It then returns results to a search results page.On that page, we want to have the filter options for categories, date, author, etc.
We have that built here: http://abc680.sg-host.com/search-results/The way I created the filters was embedding a second form’s shortcode with those filters available. However, when filters are selected, the results don’t change.
Can you please let me know what we’re missing to make it so search results are filterable?
Trevor(Private) December 30, 2019 at 4:12 pm #230016I think I can see what is wrong.
The form in the header needs to have Ajax OFF. Having two forms on the results page, those two forms will not ‘talk’ to each other. The link between a form (using the filter_next_query shortcode) needs to sue the ID of the bigger sidebar form.
Did you follow the guidance here for that sidebar form:
Anonymous(Private) December 30, 2019 at 4:39 pm #230024Thanks, I did use the guidance at https://searchandfilter.com/documentation/3rd-party/elementor/
I hadn’t seen the forum link you just shared, it’s a little beyond me I think.Am I right that I need the 2nd form? I think It should be able to be done with just one?
The functionality I’m going for is:
1) general search form in menu directs to
2) search results page with additional filters available.If the search and filter movie demo were the example, the user would be able to search director and then land on the page with multiple results and further filter by genre/year, etc.
Or like this page https://www.commoncause.org/site-search/?phrase=JESSE allows users to search one term and then has post type filter at the top.
Thanks
Anonymous(Private) January 9, 2020 at 10:02 am #230382Thank you,
The sidebar is delivering correctly now. BIG HELP.However, the question of returning posts based on author is still coming up.
If you see http://abc680.sg-host.com/search-results/?_sf_s=joseph%20phelan
It includes one but not all of posts from: http://abc680.sg-host.com/author/joseph-phelanAnd searching “B. Loewe” returns no posts authored by B. Loewe.
We installed relevannsi and checked the “Index the post author display name.” Is there anything else we can do to get this functionality working?
Trevor(Private) January 10, 2020 at 12:03 pm #230639Do you have more than one author per post? If so, the only way that can work is if you set up a custom taxonomy for the authors and use Relevanssi to index that. You may need to do this anyway. The issue is that our plugin does not index the author table (I think this is something we plan to add in V3).
-
AuthorPosts