Write Wordpress Function With DOM Parser To Make IMG Clickable With SelfLink
$30-250 USD
Imeghairiwa
Imechapishwa over 11 years ago
$30-250 USD
Kulipwa wakati wa kufikishwa
Hi,
you know the Wordpress [login to view URL] and know how to program a DOM parser? Then I need you to do this:
Detailed steps:
1 Get all all images in $content variable e.g. DOM PARSER instead of preg_match_all($pattern2, $content, $matches);
2 Secondly, before the image tag add: a href="" and after the image tag add the closing tag
3 The URL for the a tag should be the name of the image e.g. a href="/[login to view URL]'.$imagename.'">".$1."</a
4 IMPORTANT: Image width, alt text and image height need to stay the same, a preg_replace is NOT OK to do this
5 I need optimized code - the faster the better, I could use a preg_match function myself but DOM PARSER is faster
My budget for this is $60 for a few lines of codes, but we can discuss details by PM
Requirement: You need to test everything on your own server / locally and send me the final [login to view URL]
Thanks
Oliver
6 Years in Web- 225 completed Projects - 140 Satisfied Client - 86 countries - 5 Star ratings on Freelancer/Elance. Still going strong, please check your Inbox for my message - Regards, Derick Rethans