Show Results Initially on page load

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Show Results Initially on page load

This topic contains 1 reply, has 2 voices, and was last updated by Ernest Marcinko Ernest Marcinko 8 years, 10 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #5076
    14leaf
    14leaf
    Participant

    Hi There,

    I was wondering if there’s a way to show the results already on the page when someone loads the page (i.e. before clicking search or messing with the filters)?

    I was hoping to show the last posts for example posted, then allow people to mess around with the filters (which would then function as currently done and filter down the results accordingly).

    I would say this is akin to http://demo.designsandcode.com/sfpro-movie-reviews/

    I purchased your plugin first, so wanted to do the same if possible. Appreciate the help.

    Thanks,
    E

    #5079
    Ernest Marcinko
    Ernest Marcinko
    Keymaster

    Hi!

    The only way is using a custom script code in your website footer. First you will need to change one setting though, in order to make the search work with 0 input characters.

    1. Go to the General Options -> Behavior panel and change the “Minimal character count to trigger search” option to 0

    2. Add this script to your theme footer before the closing body tag: http://pastebin.com/raw.php?i=6hymZi4h

    You can change the searchPhrase variable in that code if you want to use a default search phrase.

    Best,
    Ernest Marcinko

    If you like my products, don't forget to rate them on codecanyon :)


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

You must be logged in to reply to this topic.