Generate automatic ALT tags for images in Wordpress MU

IN PROGRESS
Bids
3
Avg Bid (USD)
$30
Project Budget (USD)
$30 - $30

Project Description:
Note: project involves viewing adult images at times.

I have a Wordpress MU network installation and need someone to code a small solution to generate automatic ALT tags for images in posts for SEO purposes.

I provide following code found for free on the internet for illustration purposes but I´m not sure if it works. Anyway, you are responsible of making a solution that works and does the following: all images in the posts in the current OR at least in future blog posts, be it manual or rss feed posts, shall have ALT tag descriptions, taken from the post´s titles.

Here´s the code for illustration purposes, which is supposed to be on functions.php file:

/** Auto-


Generate ALT tag for images */

function image_alt_tag($content)

{global $post;preg_match_all('//', $content, $images);

if(!is_null($images)) {foreach($images[1] as $index => $value)

{if(!preg_match('/alt=/', $value)){

$new_img = str_replace('<img', '<img alt="'.get_the_title().'"', $images[0][$index]);

$content = str_replace($images[0][$index], $new_img, $content);}}}

return $content;

}

add_filter('the_content', 'image_alt_tag', 99999);



The 3 blogs to work with are: http://pixdaddy.com/PublicGfs/wp-admin/, http://pixdaddy.com/BottomlessGfs/wp-admin/, http://pixdaddy.com/clone1/wp-admin/

Skills required:
HTML, PHP
About the employer:
Verified
Public Clarification Board
Bids are hidden by the project creator. Log in as the employer to view bids or to bid on this project.
You will not be able to bid on this project if you are not qualified in one of the job categories. To see your qualifications click here.


$ 30
in 0 days
Hire K7kMN5K6o
$ 30
in 1 days
$ 30
in 0 days