Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_filter( 'wp_get_attachment_link', 'office_prettygallery');
- function prettygallery ($content) {
- $content = preg_replace("/<a/","<a rel=\"prettyPhoto[gallery]\"",$content,1);
- return $content;
- }
Advertisement
Add Comment
Please, Sign In to add comment