Before/After

A “before and after” portfolio generator. Uses images uploaded to the media library; organize galleries from the post add/edit page.

Author:Kyle Truscott (profile at wordpress.org)
WordPress version required:2.5
WordPress version tested:2.9.2
Plugin version:0.2
Added to WordPress repository:01-12-2009
Last updated:07-01-2010
Warning! This plugin has not been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.
Rating, %:0
Rated by:0
Plugin URI:http://www.keighl.com/plugins/before-after/
Total downloads:2 680
Active installs:10+
plugin download
Click to start download

Organize “before and after” style portfolios embedded within WordPress posts. Before/After allows you to select specific images out of your media library, and sort them into respective before and after groups from the post editing page. Useful for anyone who features their work or services (web-designers, artists, plumbers, etc.) on their site.

Support & Examples

=Use=

  • Add images to your Media Library; these images will become available to you on the post add/edit page.
  • On the post add/edit page, simply drag images from the Media Library column into the Before and After columns.
  • To remove an item, double-click it.

=Template Tags=

=<?php $beforeafter->is_gallery( id ); ?>=

Returns true if there is a Before/After gallery associated with a particular post.

  • id:
    • A post id. Typically the current post, $post->ID

=<?php $beforeafter->gallery( type , id , file , links , list , rel , limit ); ?>=

Returns the images stored in a particular Before/After gallery.

  • type:

    • Determines which gallery to return: before or after.
    • Values: ‘before’ , ‘after’
    • Default: ‘after’
  • id:

    • The post id. If set to 0, will return images from all posts with Before/After galleries.
    • Default: 0
  • file:

    • Determines the type of image to return: the original image file, or the thumbnail.
    • Values: ‘thumb’ , ‘file’
    • Default: ‘thumb’
  • links:

    • If set to true, will wrap images with links to the original files.
    • Values: true, false
    • Default: true
  • list:

    • If set to true, wraps the image in
    • tags.
    • Values: true, fase
    • Default: false
  • rel:

    • Alters the default rel parameter for image links.
    • Default: ‘beforeafter’
  • limit:

    • Limits how many items are returned.
    • Default: all of ’em.

Screenshots
FAQ
ChangeLog