Query Custom Post Types

Query WordPress for a particular post type.

If you just want an object and not the entire post loop you can also do this.

 

Edit Search Query

Used to edit the search query. In this case we are only allowing the search to query for ticket and client post types.