[Plugin: Automatic SEO Links] Setting Captions as an Exception
-
Hope somebody can help me:
I want to exclude captions from being linked. Captions are organised like this:
<img class="size-full wp-image-1341" title="Word" src="****/icon_word.jpg" alt="word" height="37" width="37"><p class="wp-caption-text">Word</p>
How do I add a routine ignoring thise
wp-caption-text
s in here:$noChanges = array( '/<h[1-6][^>]*>[^<]*'.$link->text.'[^<]*<\/h[1-6]>/i', '/<a[^>]+>[^<]*'.$link->text.'[^<]*<\/a>/i', '/href=("|\')[^"\']+'.$link->text.'(.*)[^"\']+("|\')/i', '/src=("|\')[^"\']*'.$link->text.'[^"\']*("|\')/i', '/alt=("|\')[^"\']*'.$link->text.'[^"\']*("|\')/i', '/title=("|\')[^"\']*'.$link->text.'[^"\']*("|\')/i', '/content=("|\')[^"\']*'.$link->text.'[^"\']*("|\')/i', '/<script[^>]*>[^<]*'.$link->text.'[^<]*<\/script>/i', '/<embed[^>]+>[^<]*'.$link->text.'[^<]*<\/embed>/i', '/wmode=("|\')[^"\']*'.$link->text.'[^"\']*("|\')/i' );
Can anybody tell me?
Thanks?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[Plugin: Automatic SEO Links] Setting Captions as an Exception’ is closed to new replies.