Beginning WordPress developer here. I’m working with a legacy database with lots of information in custom fields (originally created with ACF). Among them are videos I’d like to put in a Gutenberg “Embed” block, e.g. from YouTube.
I’ve created a custom theme (child of twentytwenty). I’ve made other custom fields appear (as plain text) by adding them to template-parts/content.php, below “the_content”.
My plan has been to add code like, “If there’s data in the wpcf-embedded-media field, add an Embed block to the page and stick the data in there.” But I can’t figure out the “add an Embed block to the page” part.
Of course I’d welcome suggestions for other ways to do this. Thanks in advance for your help!
-
This topic was modified 3 years, 9 months ago by Tom Geller.
-
This topic was modified 3 years, 9 months ago by Tom Geller.
-
This topic was modified 3 years, 9 months ago by Tom Geller.