Write Wordpress Function With DOM Parser To Make IMG Clickable With SelfLink - repost2




budget for this project $60 - it's only a small function not a full project, keep that in mind

you know the Wordpress [url removed, login to view] 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="/[url removed, login to view]'.$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 [url removed, login to view]



Skills: PHP, WordPress

See more: wordpress dom parser, we can write that, img wordpress, how to write a code in php, preg_match dom parser, how do we write the content of a program, oliver, make your own image, img, final alt, DOM, php image href, wordpress faster, wordpress height, php image write, clickable text image, wordpress function php, php function write, wordpress functions, php src href link, php dom, write php small project, href img src link php, url link parser, write lines php code

Project ID: #4209661

Awarded to:


Sending you some questions in a sec. Kind Regards

$60 USD in 2 days
(252 Reviews)

2 freelancers are bidding on average $105 for this job


Sorry, but 60 is very low budget for quality work. I can do this for 150. Thanks!

$150 USD in 2 days
(385 Reviews)

expert here check pm thank nitya

$200 USD in 7 days
(141 Reviews)