Archived topic
Use content template block in custom loops
3 replies · Started by David Perez Garcia on June 1, 2021
Hello,
We build websites with the new content template block. It's awesome! We build some custom blocks like queries of featured cpt, latest cpt, child cpt, and we are wondering if we could use that template block in order not to make the same template. Is it possible? could we use like generate functions?
Thanks!
Hi there,
Not exactly sure if I understand.
Can you explain a bit more?
Are you trying to display posts in a static page? If so that's not possible with the content template feature.
Let me know if this helps :)
Yes, I'm trying to display posts designed in content template.
Any plan to suport queries for posts grid?
Unfortunately that’s not possible.
The content templates feature only apply to theme templates – It doesn’t create queries, loops or any of the HTML required to create a post list.
You will need a plugin like WP Show Posts.