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
- The topic ‘Adding a custom post type into the query loop block’ is closed to new replies.