Title: Adding a custom post type into the query loop block
Last modified: May 20, 2024

---

# Adding a custom post type into the query loop block

 *  [Ryan C](https://wordpress.org/support/users/multiflex/)
 * (@multiflex)
 * [2 years ago](https://wordpress.org/support/topic/adding-a-custom-post-type-into-the-query-loop-block/)
 * Hi, I’m just hoping to get some guidance on how I can go about querying a custom
   post type in the query loop block. I have a custom post type called ‘profiles’
   which I’m wanting to display these profiles on a specific page. Like a list of
   them, I’ve been thinking that using the query loop to display all profiles would
   probably be best but i’m not sure how I should begin to go about it. I would 
   prefer to be able to utilize code rather than relying on lots of plugins like
   ACF and others.
 * I realise that my question is somewhat ambigious or open to interpretation. I
   guess i’m just looking on some guidance on getting started. I have a local wordpress
   environment set up with wp-env.
 * What would my best approach be? Create my fields with ACF and then create a custom
   query loop block specific to my new post type or something else?
 * Any help appreciated

Viewing 1 replies (of 1 total)

 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [2 years ago](https://wordpress.org/support/topic/adding-a-custom-post-type-into-the-query-loop-block/#post-17768861)
 * The query loop blocks shows all available post types for selection. See: [https://wordpress.org/documentation/article/query-loop-block/](https://wordpress.org/documentation/article/query-loop-block/)
 * All you really have to do is add your post type. Whether via ACF or manually (
   see: [https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/](https://developer.wordpress.org/plugins/post-types/registering-custom-post-types/))
   it doesn’t really matter. Do it the way you can best deal with it. You don’t 
   have to develop your own loop block for this.

Viewing 1 replies (of 1 total)

The topic ‘Adding a custom post type into the query loop block’ is closed to new
replies.

## Tags

 * [ACF](https://wordpress.org/support/topic-tag/acf/)
 * [custom post](https://wordpress.org/support/topic-tag/custom-post/)
 * [gutenberg](https://wordpress.org/support/topic-tag/gutenberg/)
 * [query loop](https://wordpress.org/support/topic-tag/query-loop/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 1 reply
 * 2 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/adding-a-custom-post-type-into-the-query-loop-block/#post-17768861)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
