custom search

Solved3.58K viewsWordPresssearch

Good afternoon!
I’m doing a custom search on the site 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

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 🙂