Query builder within global block

I have been playing with the amazing new system today. I have made a custom post type for members of staff and displayed it on a page using query builder etc. Everything works great.

Then I thought it would be smarter to make this using a global block, so that I could display it as needed on other pages in a smarter way.

But when I try to select the post type for my looper provider / query builder I can only choose from PAGE, POST or PORTFOLIO item.
Is there something I’ve forgotten to include or is it not working quite the same in global blocks as elsewhere yet?

Hi @spedney,

It should enumerate all post types and let you pull them through. Is your post type registered on the init action? How are you registering it. If it’s custom code and you don’t mind sharing that I can take a look. Or if you’re using a plugin, would you mind if I logged into the site to check that out? Thanks!

I used the CPT plugin. I was wondering that it could be one of the options for the post type that I hadn’t enabled. I’ll send login details…

I found the cause.
After testing it out, I had later set the post type option “Exclude from search” to TRUE. This stopped it from appearing in the list of available types for query.
The page where I had tested before was already set up and continued to work, but adding it again somewhere else (which happened to be on a GB) failed to list the type as a query option.

Thanks! That helps. I made an adjustment to allow post types that are excluded from search for the next patch.