I want id="fancybox" and rel="photogallery" added to the generated automatically once it is "inserted into post" from the media gallery.

Thanks in advance!!!


Justin Tadlock's Cleaner Gallery plugin can do exactly that and comes with a couple other nice features. It supports 18 gallery scripts, FancyBox included.

  • I'm straying away from plugins for this, i just need a function.php fix,i'd prefer to work it into my theme. – Christopher Apr 23 '12 at 23:51
  • Fair enough. You'll want to look at the post_gallery filter then. adambrown.info/p/wp_hooks/hook/… – mrwweb Apr 24 '12 at 1:08

Not the answer you're looking for? Browse other questions tagged or ask your own question.