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":
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
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
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