Forums Forums Search & Filter Pro Search Result Display

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #265716

    First of all thank you for your plugin. It is the perfect solution to stay with my WordPress Theme but have better filter options for my content.

    I was wondering how I can change how the search results are displayed?

    I am using the search form and the search results as shortcodes on https://www.yogaycupcakes.com/yoga-library
    The images are awfully scaled in the search results.

    Thanks a lot,
    Stefanie

    Trevor
    #265799

    As you are using our shortcode method the display of the results comes from our results.php file. You would need to customise it as described (in basic form) here:

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

    To change the image size, edit these lines:

    <?php
    if ( has_post_thumbnail() ) {
      echo '<p>';
      the_post_thumbnail("small");
      echo '</p>';
    }
    ?>

    I would suggest changing small to thumb.

    You can change/delete other lines or parts. For example, to remove the date, you would need to remove this line:

    <p><small><?php the_date(); ?></small></p>

    Anonymous
    #265914

    Hi Trevor,

    Thanks a lot for your reply, appreciate it.

    How do I have to change the code in order to display the results like my WordPress theme displays them?

    Like at the bottom of the page https://www.yogaycupcakes.com/yoga-library

    Trevor
    #266039
    This reply has been marked as private.
    Anonymous
    #266080

    Hi Trevor,

    thank you again for your help.

    I am using the Oshine WordPress theme https://oshinewptheme.com and it is using Tatsu Page builder.
    Does that mean I can’t get the results displayed in a nice grid?

    Thank you for pointing out the Category problem. I will look into that then.

    Trevor
    #266088

    If that came with your theme, you will need to ask your theme author whether that builder has a hook to allow the addition of a query argument, such as:

    'search_filter_id' => 1234,

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