Archived topic
Template for Query
1 reply · Started by Chris on August 18, 2021
I am trying to build out a query. We have the new query block which currently sucks because it's still in dev.
Is there any way to build a query template and apply that to a custom loop?
Next dumb question... is there any way to build a custom query/loop with GP/GB?
Hi there,
I'm not sure I fully understand what you mean. Are you looking for a sample PHP code for WP_Query loops?
If yes, you can check and see if our WP Show Posts' query loop coding is a good reference for you.
https://github.com/tomusborne/wp-show-posts/blob/35e410d7800273fc66f211c0f80d553e95d17f83/wp-show-posts.php#L383-L540