Good day hope someone can help me, how can I do this with ACF?
http://prntscr.com/bwk6i6
someone I know is using something like this using acf, basically he puts a google link as input then it will automatically output as an embed link hiding the google link
hope someone can guide me in the right direction in what should i do to accomplish this. this been bugging me for days now π
thank you so much
Hi @jayboy
Looking at your screenshot, it seems that it uses a custom function to convert the link to the embed code. To do that, you need to use the acf/save_post action hook and the update_field() function to update the field on save.
But, if you only need to do it for common websites like Youtube or Vimeo, you can use the oEmbed field instead. This page should give you more idea about it: https://www.advancedcustomfields.com/resources/oembed/.
I hope this helps π