Hi, @bdesco WordPress is open source so you can always check the source code of the function you want to re-create and try to replicate that in VBA.
That’s a tough project.
Anyways, WordPress “builds” the URLs like this:
It includes your domain name followed by /wp-content/uploads/, date of image upload, and the image file name.
So, an url for an image may look like this:
[YOUR_DOMAIN]/wp-content/uploads/2019/01/cool_image.png
Thread Starter
bdesco
(@bdesco)
Thanks!
@mmaattiiaass : I tried looking at the code. https://developer.ww.wp.xz.cn/reference/functions/urlencode_deep/. And then https://developer.ww.wp.xz.cn/reference/functions/map_deep/. And this started to look like a rabbit hole. Especially as I’m just an occasional VBA macro writer, nothing special.
@a2hostingrj : the difficult part is how the file name will be changed. E.g. space becomes ‘-‘, ‘é’ becomes ‘e’. This seems to be different than how this is normally done (encoding with ‘%’ signs).
So I was hoping someone already has been down this road.
Not really, it is going to be difficult to implement that.