how to use “Query post by search keyword” –

Ticket for: Post Grid
how to use "Query post by search keyword" - 1
Dec 27, 2019 06:31 PM 1 Answers
Member Since Dec 2019
Subscribed Subscribe Not subscribe

I am trying to create a post grid with pages that have a specific parent page. To do so, I am trying to use the "Search parameters" option inside "Query Post":

View post on

Following the information here
I have introduced this line into the Search Parameters
$query = new WP_Query( array( 'post_parent' => 93 ) );
and other combinations based on that : eg 'post_parent' =>93; but in all cases, when the Post Grid is loaded I get a "No Post Found" instead of the post with the parent.

So my question is, what is the way to introduce the queries into the Search Parameters? It is not clear to me.

Thanks in advance

2 Subscribers
how to use "Query post by search keyword" - 1
how to use "Query post by search keyword" - 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
how to use "Query post by search keyword" - 4
Dec 29, 2019

Welcome to our forum.

There is a filter avilable for filter query arguments, please see the documentation.

Let me know for more help.


how to use "Query post by search keyword" - 5
- Jan 25, 2020 02:12 AM
Flag (0)

Thanks for the answer. However, I am a beginner so I do not quite understand where should I create this filtering function. Do I need to create a child theme and add the function there? If not like that, how should I do it? Many thanks in advance

Sign in to Reply
Replying as Submit