I am working with underscores me trying to build a template by my own. I have build a homepage template and also a single-post file for the custom post types. What I am trying to get its to display in the homepage a kind of gallery with the featured images from each custom post type with title and tags. Have tried different ways, i guessed it would be something with wp_get_archives but still didn't get it. If you have some suggestions would be awesome.
Constructing a query On a category page, WordPress already knows that you want to list posts from that category. Because we are constructing a query from scratch using WP_Query, we need to specify this ourselves. We’ll delve a bit deeper into this in a bit.