Forums Forums Search & Filter Pro Results by Author

Viewing 10 posts - 1 through 10 (of 16 total)
  • Anonymous
    #229938

    Hello,

    I’m trying to ensure that when a site visitor searches by a name, that the results include posts by the author with that name.

    Right now on our site, that’s not displaying.
    Please let me know what I may need to adjust

    Thanks
    B

    Trevor
    #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
    #230014

    Thank 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
    #230016

    I 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:

    https://support.searchandfilter.com/forums/topic/how-can-i-search-elemntor-column-while-retaining-the-design-of-that-column/#post-209754

    Anonymous
    #230024

    Thanks, 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

    Trevor
    #230029
    This reply has been marked as private.
    Anonymous
    #230031
    This reply has been marked as private.
    Trevor
    #230035

    I *think* I have fixed it now. You need this custom CSS in the site Customizer:

    .searchandfilter ul {
        padding-left: 0px;
    }
    Anonymous
    #230382

    Thank 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-phelan

    And 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
    #230639

    Do 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).

Viewing 10 posts - 1 through 10 (of 16 total)