Querying by Post ID- what am I doing wrong?

So I’m trying to query a single specific post by ID in a query loop (the output from a API call) and I’m using this PHP query to test:

return [
  'p' => 1940,
];

As simple as I’d think it gets but I’m not getting results from it? Maybe some fundamental WP/PHP thing I don’t know about? I did also try and do a meta query to no success as well.

to query it is loading it for display, but doenst do the display itself.

Need like: the_post();

Or in sections

the_title();
the_content();

Hi @notMateo ,

Please try adding post_type as well, otherwise, Bricks will use ‘post’ as the default post type for the query.

Regards,
Jenn

I have no idea what happened but I turned off query loop and turned it back on and now it’s perfectly fine. Adding post_type didn’t work until I turned it off and on, and now it’s fine even without it.

Thanks regardless!