If you want to query WordPress content, try
Gridbuilder Unlimited License. This is an excellent plugin with a lifetime license that allows you to query content to layout it out in a grid or carousel. How I use it every day on my site. It's convenient. I recommend all developers who work with WP try it to make the site better for their users.