Shortcode results: don't display results until click

Forums › Forums › Search & Filter Pro › Shortcode results: don't display results until click

Tagged: 

Viewing 10 posts – 11 through 20 (of 21 total)
  • Trevor
    #51934

    And the shortcode id for the search IS 44?

    Anonymous
    #51956
    This reply has been marked as private.
    Trevor
    #51965

    mmmm

    I will have to talk with the developer, Ross, before I can get back to you. I will mark this thread for his attention. We tend only to meet up during Monday-Friday, so it will be a couple of days.

    Ross Moderator
    #52144
    This reply has been marked as private.
    Anonymous
    #52155
    This reply has been marked as private.
    Anonymous
    #52533
    This reply has been marked as private.
    Ross Moderator
    #52832
    This reply has been marked as private.
    Ross Moderator
    #52833

    Hey Will

    I took a look – to me it seemed like it was working pretty much, although there was one thing I noticed which may be the issue you were having.

    Essentially, when there are no results or nothing has been selected, you will get a “no results” message.

    I guess what you wanted was to have a blank page before searching (not a “no results” message”) and then show “no results” only when a filter has been selected AND there are no results.

    In this case I’ve modified your template slightly.

    You’ll see that the first check is on is_filtered, and if its not, you will see an else condition at the bottom with some text commented out.

    If it is filtered, then it goes and performs the loop – and inside there there is another check to see if there are actually any results.

    Hope that helps – looks like its working to me!

    Best

    Anonymous
    #52834

    Ross – that’s exactly what I wanted. Thank you so much!!! perfect!

    Trevor
    #52835

    Hi Will

    Can I mark this as resolved and close the thread?

Viewing 10 posts – 11 through 20 (of 21 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.