How to use carbon fields display all posts which use carbon fields?

Hi all.
How to display all the posts where the plugin is used carbon fields?
I have created custom field:
Container::make('post_meta', 'product Settings')
 -> show_on_template('product-template.php')
 -> add_fields(array(
 Field::make('text', 'price_field', 'Price') -> set_width(50),
 Field::make('textarea', 'price_short_description', 'Short description'),
 ));

And now I want to display all the posts where I use these custom fields and I don't know how to do it.
So you can display only one product
$products = carbon_get_post_meta( $id, $name );
var_dump($products);

But if I need everything?
Thank you.
June 5th 19 at 21:29
1 answer
June 5th 19 at 21:31
Solution
If you are interested:
$query = new WP_Query(array(
 'post_type' => 'post',
 'meta_query' => array(
array(
 'key' => 'price_field',
),
),
 ));

Find more questions by tags WordPress