Forums › Forums › Search & Filter Pro › How do I use the same Search Form for 50 posts using custom query?
- This topic has 20 replies, 3 voices, and was last updated 5 years, 8 months ago by Ross.
-
Trevor(Private) February 28, 2019 at 6:44 am #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)?
Ross Moderator(Private) March 3, 2019 at 7:02 pm #203788Hi 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
-
AuthorPosts