Home Forums General Issues How to do this? Converting some links


How to do this? Converting some links

  • Good day hope someone can help me, how can I do this with ACF?

    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:

    I hope this helps 🙂

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘How to do this? Converting some links’ is closed to new replies.