So I have this code which is part of a CSV Importer:
Right now, when the importer imports a image, it names the image based on it`s URL (E.g imageshack.us/a/img585/4739/8jp6.png, would mean it would name it 8jp6.png).
However, I want the importer to name it based on it`s WP Post Title. I tried to manipulate the code but failed, if anyone can help, it`d be much appreciated, thanks!
Last edited by Lmp; 10-15-2013 at 01:05 AM.
Looks like you put my code into the saveImages($post_id) function, not the saveImageWithUrl function.
I tried both, I tried saveImagewithUrl first, than tried playing around with the code but didn't work.
Do you have to change something with the SaveImagewithName? Cause when saving the featured image, the function calls upon both saveimagewithurl and sameimagewithname?
Last edited by Lmp; 10-15-2013 at 04:45 PM.
Did you get this working?
Yeah, well not exactly, but I found another solution to my problem.