Closed

Generate automatic ALT tags for images in Wordpress MU

This project was awarded to niknor for $30 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 USD
Total Bids
3
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 [url removed, login to view] 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: [url removed, login to view], [url removed, login to view], [url removed, login to view]

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