wp_insert_post with custom post type page and init
-
i have created a custom post type ‘page’; then create a page with wp_insert_post;
What i want to do now is to init gutemberg blocks for this page; if i do a template at register it only works if the page is manually made…but how to do this by wp_insert_post?
What i would like to do is a custom post type as page, giving the page gutenberg blocks per programm (would be nice if i could fill the blocks with data from db)…so that you can see and edit the blocks…is that possible? Doing it with page-template is not the target, because there is no edit then, right?
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘wp_insert_post with custom post type page and init’ is closed to new replies.