how to use “Query post by search keyword” –

Ticket for: Combo Blocks
0
how to use "Query post by search keyword" - 1
Roberto
Dec 27, 2019 06:31 PM 1 Answers
Member Since Dec 2019
Subscribed Subscribe Not subscribe
Flag(0)

Hello,
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 imgur.com

Following the information here https://developer.wordpress.org/reference/classes/wp_query/
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
0
how to use "Query post by search keyword" - 4
PickPlugins
Dec 29, 2019
Flag(0)

Welcome to our forum.

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

https://pickplugins.com/documentation/post-grid/filter-hooks/post_grid_query_args/

Let me know for more help.

Regards

how to use "Query post by search keyword" - 5
Roberto
- Jan 25, 2020 02:12 AM
Flag (0)
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