custom search

Solved3.59K viewsWordPresssearch
0

Good afternoon!
I’m doing a custom search on the site https://povestka.by and i have a problem.

Now I have an array with a list of question IDs.
I need to form Question_Query from this array and display it as a standard list of questions.
Can you tell me how to do this?

Question is closed for new answers.
selected answer
0

Hello Siamion,

Question_Query() is same as WP_Query. So, it means you can use all arguments used in WP_Query in Question_Query().

You can use post__in argument for including multiple post ids.

Loading Gist...
selected as best answer

Thank you for the above example. It answered all my questions 🙂