Forums Forums Search & Filter Pro the_excerpt/custom field data, am I missing something?

Tagged: 

Viewing 7 posts - 1 through 7 (of 7 total)
  • Anonymous
    #189413

    I have a search form that is working and outputting the results as expected, to a degree.

    All the data being searched is in various custom fields (ACF) and whilst this is being searched, the results output isn’t showing any data related to that. I would expect the results to show some kind of snippet with the search term.

    Is there something I’ve missed?

    Trevor
    #189420
    Anonymous
    #189424

    Currently using the shortcode option, but can switch to archive if that will work?

    Currently, I see no option inside the S&F interface to select any kind of results content output.

    Trevor
    #189428

    The shortcode display results method uses our exemplar template – results.php. The basic steps for customising the file are set here, but you would need to do the coding:

    https://searchandfilter.com/documentation/search-results/using-a-shortcode/#customising-the-results

    The ACF documentation gives you how to get the data from their fields. This post shows an example results.php template file that gets ACF fields:

    https://support.searchandfilter.com/forums/topic/output-acf-post-object-fields-in-results/#post-102009

    Anonymous
    #189435

    Trevor, I’m sorry but that doesn’t work.

    I already have a custom results template.

    I know how to output an ACF field easy enough.

    The issue here is that the S&F plugin has no option to generate any kind of excerpt/snippet based on the search results of those custom fields.

    All the example will do is output the entire custom field value, not the search term/snippet.

    Trevor
    #189473
    This reply has been marked as private.
    Trevor
    #189560

    Hi Simon. Great to speak with you. I can see you have gone as far as you can in having a customised excerpt based on the search phrase. These ARE options within Relevanssi, and I think we will produce an addon for that plugin for our V3.x series of the Search & Filter plugin, possibly for V3.1.

Viewing 7 posts - 1 through 7 (of 7 total)