Support Forums

The forums are closed and will be removed when we launch our new site.

Looking for support? You can access the support system via your account.

Forums Forums Search & Filter Pro How do I use the same Search Form for 50 posts using custom query?

Viewing 10 posts - 1 through 10 (of 21 total)
  • Rahul Roy
    #203547

    I want to use the same search form for 50 posts with input from custom query. I am not able to understand, how to implement it? Please guide.

    Trevor Moderator
    #203557

    I am sorry, I do not understand. Could you provide me with a far more detailed description of the issue? Have you already made a form, and if so, are you able to send me a live link/URL to your search page so I can take a look?

    What do you mean when you say ‘input from a custom query’? Have you created a wp_query with arguments that you want to use, in a template file? If so, what are those arguments and are you able to share that template with me? To the values in the wp_query change or are they fixed?

    Do you need a results page with a fixed URL, or does it want to be on the theme search results page?

    Do your results need a specific format that already exists in the theme/site, if so, can you provide me an example of the look an feel of that layout on a current page in your site (i.e. not an example from a different site)?

    Rahul Roy
    #203566
    This reply has been marked as private.
    Trevor Moderator
    #203568

    Are you using the Custom display Results method in the form and supplying the page URL in the Results URL field?

    Rahul Roy
    #203570

    Yes, right now this is for the single post.

    Trevor Moderator
    #203572
    This reply has been marked as private.
    Rahul Roy
    #203577
    This reply has been marked as private.
    Rahul Roy
    #203626

    Hi Trevor,

    Any update on this?

    Regards

    Trevor Moderator
    #203629
    This reply has been marked as private.
    Ross Moderator
    #203788

    Hi Rahul

    So, you should be ok to use the same query multiple times, as you have been doing by adding search_filter_id to your $args.

    So, lets strip this back a bit.

    Can you reduce your test / example to a point that it will display some valid results?

    For example:

    $args = array();
    $args['post_type'] = array('post');
    $args['search_filter_id'] = 22899;

    Please test a more basic example like the above and let me know how you get on.

    NB – Once we get the results working, we will move on to the second issue, which is having a dynamic results URL.

    Thanks

Viewing 10 posts - 1 through 10 (of 21 total)

The forum ‘Search & Filter Pro’ is closed to new topics and replies.