Create new post WordPress programmatically with custom meta fields

How can you create and insert new posts containing already filled Advanced Custom Fields programmatically into your database? Say you have an ACF group with 3 fields each of a different type description (type Text) image (type Image) categories (type Taxonomy) prepare a basic post $my_post = array( ‘post_title’ => ‘My post’, ‘post_content’ => ‘This is my post.’, ‘post_status’ =>…

WordPress display the_meta() of in custom page

I have some meta values on my wordpress custom page that I need to be displayed in a table. Is there any way I can do that. Here’s the code I’m using now: <?php the_meta(); ?> And this is what it shows: I want to do something like: I found out that: the_meta() is located in…