I am trying to import images from an URL to Wordpress media image. Like something as this:
<?php
update_field('imagefield', <<URL>>, $post_id);
?>
Which is the best way to do it? The image can be a png, gif or jpg image.
Hope someone can help out.
Greetings Peter
Aucun commentaire:
Enregistrer un commentaire