I m working with wordpress
+ acf
+ rest acf
and I'm needing to cut some URL.
Instead of having a full URL of image displayed in my JSON :
"intro_img": {
"url": "http:\/\/127.0.0.1\/app\/wp-content\/uploads\/2016\/10\/intro.png",
}
I need something much more like :
"intro_img": {
"url": "uploads/2016/10/intro.png",
}
What can I do to cut that URL
of only for files uploaded ?
Thanks for your help