wpexplorer

Untitled

May 29th, 2012
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. add_filter( 'wp_get_attachment_link', 'office_prettygallery');
  2. function prettygallery ($content) {
  3. $content = preg_replace("/<a/","<a rel=\"prettyPhoto[gallery]\"",$content,1);
  4. return $content;
  5. }
Advertisement
Add Comment
Please, Sign In to add comment