EOT; $HSCode = <<{$HSCaption} EOT; for ($j = 0; $j < count($HSVars); $j++) { $key = array_search($HSVars[$j], $HSSetVars); $val = (is_int($key)) ? $HSSetVals[$key] : $HSVals[$j]; if ($HSVars[$j] == 'THUMBID') { $val = 'P' . $post->ID . $i; } $HSCode = str_replace('%'.$HSVars[$j].'%', $val, $HSCode); } $content = str_replace($HSStrings[$i], $HSCode, $content); return $content; } ############################################################################### # END wp highslide picture code # ############################################################################### ?>

 

在wordpress中插入图片时请 选择“链接到图像”,如下图:

给WordPress图片加上Highslide特效-WP酷

之后发布文章即可看到效果。