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

This project was awarded to DrTech76 for $60 USD.

Get free quotes for a project like this
Project Budget
$30 - $250 USD
Total Bids
Project Description


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]



Awarded to:
Skills Required

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online