This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

2 questions about search results and styling

Home Forums Product Support Forums Ajax Search Pro for WordPress Support 2 questions about search results and styling

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #54070
    info_gB8Kinfo_gB8K
    Participant

    Hello Support,

    great plugin, I like it a lot. I just have 2 questions I could not figure out through the online-help.

    1.) I use the search as a filter for posts. The posts use custom fields that Ajax Search Pro is filtering. Works like a charm. But when opening the page I would like to first show all results as standard. How to do that?

    2.) I’d like to show the results underneath the search bar and underneath the filter options. How to do that?

    Note if you check the website frontend: if you click on “Veranstaltungen” on the left, you’ll see a result as an example.

    #54076
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi,

    Thank you very much for your kind words!

    1. You are looking for the auto-populate feature, that will let you display initial results on page load.

    2. Sure! Depending on the implementation, you can either use search the settings and the result blocks, or use their shortcode versions, in your case:

    [wd_asp id=1]
    [wpdreams_asp_settings id=1 element='div']
    [wpdreams_ajaxsearchpro_results id=1element='div']

    This will print the search, settings and the result containers under each other as you need it.

    #54077
    info_gB8Kinfo_gB8K
    Participant

    Awesome, thanks for your help Ernest!

    Now all results are displayed, perfect. Is there a way to only show results that have a specific tag included?

    And unfortunately the part the blocks didn’t work. I was using

    [wd_asp id=1]
    [wpdreams_asp_settings id=1 element='div']
    [wpdreams_ajaxsearchpro_results id=1element='div']

    but the results are unfortunately still displayed between the search field and the filters.

    #54078
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Sorry I pasted it incorrectly:

    [wd_asp id=1]
    [wpdreams_asp_settings id=1 element='div']
    [wpdreams_ajaxsearchpro_results id=1 element='div']

    This will do it.

    And yes, you can restrict the results to a specific taxonomy term, check this documentation.

    #54079
    info_gB8Kinfo_gB8K
    Participant

    Awesome, thanks a lot Ernest!

    #54080
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You are very welcome 🙂

    If you like the plugin and have not rated already, feel free to leave a rating on the wordpress plugin repository, it’s greatly appreciated.

    I will keep this open for a while in case you have any other questions.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.