While creating Block Themes in WordPress, how can I query custom posts for an Archive view?
I found a solution for this. So for those of you who face a similar situation, here’s what I did (based on this solution : https://stackoverflow.com/questions/68871598/wordpress-query-loop-block-not-showing-custom-post-types) So basically the custom post type that I had created needed to have this argument while registering the post-type in functions.php ‘show_in_rest’ => true And then I just had … Read more