Trevor

Forum Replies Created

Viewing 10 posts - 31,911 through 31,920 (of 32,056 total)
  • Trevor in reply to:
    Calendar not working
    #40959

    Hi

    I looked in the admin at the search & filter form. Does it have a date field? If so, which field?

    Trevor in reply to:
    Group search results by starting letter, number
    #40958

    Ah. If you edit the results.php file that you copied to your (child) theme folder, you will find this code in the middle of it (I have edited it a bit to compress it, but it looks somewhat like this):

    <?php
    while ($query->have_posts())
      {
        $query->the_post();
    ?>
    <?php /* echo get_post_mime_type(get_the_ID()); */ ?>
    <div>
      <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
      <p><br /><?php the_excerpt(); ?><p>
    <?php 
    if ( has_post_thumbnail() ) {
      echo '<p>';
      the_post_thumbnail("small");
      echo '</p>';
    }
    ?>
      <p><?php the_category(); ?><p>
      <p><?php the_tags(); ?><p>
      <p><small><?php the_date(); ?></small><p>
    </div>
    <hr />
    <?php
    }
    ?>

    Try replacing that with this:

    <ul class="custom-sf-results-list">
    <?php
    while ($query->have_posts())
      {
        $query->the_post();
    ?>
    <?php /* echo get_post_mime_type(get_the_ID()); */ ?>
    <li><div>
      <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
      <p><br /><?php the_excerpt(); ?><p>
    <?php 
    if ( has_post_thumbnail() ) {
      echo '<p>';
      the_post_thumbnail("small");
      echo '</p>';
    }
    ?>
      <p><?php the_category(); ?><p>
      <p><?php the_tags(); ?><p>
      <p><small><?php the_date(); ?></small><p>
    </div></li>
    <hr />
    <?php
    }
    ?>
    </ul>

    Not sure if that will work.

    Trevor in reply to:
    Group search results by starting letter, number
    #40940

    From the documentation (I think this is what you want):

    Customising the Results

    If you wish to customise the display of your results, you must override the default template that is being used by Search & Filter:

    Create a folder in your theme folder called search-filter.
    Copy the file wp-content\plugins\search-filter\templates\results.php from the templates folder in to the newly created folder in your theme – wp-content\themes\your-theme-name\search-filter\results.php

    From now on, Search & Filter will load this version of the template instead of its own – so you can make any customisations that are necessary.

    Trevor in reply to:
    Issues displaying search form horizontally in Avada
    #40939

    All that is required is a little more finesse with the custom css. Maybe you could take a screenshot crop it to the search form and play with it in Photoshop or similar so it looks as you wish, upload it to a file sharing site, and share with me (it can be a private reply if you wish) so I can see what you want and I can give you the css?

    Trevor in reply to:
    Custom Results Page Using Search.php
    #40938

    Hi, is the reason you want to use the shortcode with search.php so you can put the search on the page also?

    Trevor in reply to:
    Dropdown menu search results show "all items"
    #40937

    I just did a search and I think I can see the issue. This is the URL it used:

    http://www.luth.org/search/?sfid=59337&_sfm_author%20search=Ames%C2%B8%20Curt
    

    The Custom Field Title you have used cannot have a space in it. If this is a custom field, how did you make the custom field, or was it made for you by a plugin? I ask, because the 2 big plugins most people use (ACF/ACF Pro and Types) both will not allow spaces in the slug names, where they replace the space with an underscore. Having commas in the author names might also give issues, as commas are also used as delimiters in lists of values.

    Trevor in reply to:
    Customising the Results
    #40932

    I need to be clear on what you did. Did you follow the first section instructions on that same documentation page, as follows:

        Create a new Search Form
        Add some fields to the Search Form UI by dragging from the Available Fields box in to the UI box – for this example lets just add a Search Field and a Submit Button
        In the Settings box, under the Display Results tab select “Using a Shortcode” – you will now notice the Shortcodes meta box (underneath the Publish box) has an additional secondary shortcode called the Results Shortcode.
        Publish this.
        Now, create a New Page, on this page add both the shortcodes found in your Shortcodes metabox (your IDs will be different):

        [searchandfilter id="1428"]
        [searchandfilter id="1428" show="results"]
        Publish the page, and then click View Page
        Copy the Full URL of this page from the address bar and paste into the the S&F form, in the Results URL option and update (this can be found in the Display Results tab).

    Did you also make changes to the results.php file to customize it?

    If so, can I see the live page?

    Trevor in reply to:
    Ajax not refresh
    #40928

    I this resolved (in as much as we can) and can I close the thread?

    Trevor in reply to:
    Search price between 3 meta names
    #40926

    I am not entirely sure I understand what you want, but …. here goes.

    Let us assume you have a CPT where it has 3 fields all of which are a price. Let us assume that for each of these you have the need to ALWAYS search the SAME price across all 3 fields. Let us assume that it is a range search with a to and from input box for all 3 fields. You would either be searching where all 3 fields meet the criteria (an AND search) or where at least one does (an OR search).

    Leave one set of ‘from and to’ input boxes visible to the end user and use custom css to make the other 2 sets of input boxes hidden (display: none;).

    Then, you need custom javascript (not so hard to write, that detects any change in the visible inputs and copies those changes to the hidden fields and then submits the form. A bit smplistic, but that would be my thoughts.

    Trevor in reply to:
    Ability to dynamically populate second filter dropdown upon selection of first
    #40899

    S&F Pro will automatically (if you set it to) automatically filter so that IF you select a manager, it will then filter out those employees who do not match in those posts with that manager. It does so based on the choices you make in the posts, not based on the values in the ACF fields.

Viewing 10 posts - 31,911 through 31,920 (of 32,056 total)