Automagically invoke Facebox on gallery items and linked images in a post or page.
Takes Facebox and wires it up for sweet WP action. Also makes julienne fries. Maybe.
wp-facebox
directory to /wp-content/plugins/
* Note: For advanced configuration, refer to the comments of the constructor method, located near the bottom of wp-facebox.php
For any image contained in a post that has been specified as linked to the image source (the default, e.g. a large image resized to ‘medium’ and linked to the larger version), add a rel
attribute with the value facebox
. This is accomplished as a filter on the_content
.
Any linked content inside a shortcode gallery will demonstrate identical behaviour to those linked images in posts; viz., when clicked they will giggle and squee in delight, emitting sunshine and rainbow glitter.
Or, you know, a Facebook-style lightbox appears with the linked content.