BACK TO DIRECTORY

CaseLens Before and After Gallery

by Rodney Lungayan

0.0
(0 ratings)

CaseLens turns a set of before and after photos into a browsable gallery of cases.

It adds its own Gallery Cases post type and a hierarchical Procedures taxonomy, so your cases stay separate from posts and pages. Each case holds any number of before/after photo pairs plus the detail fields you define, and visitors can narrow the gallery down by procedure, by those details, or by case number.

Nothing else is needed: no page builder, no custom field plugin and no particular theme.

What you get

  • A Gallery Cases post type with its own admin menu, list columns and editor.
  • A hierarchical Procedures taxonomy for grouping cases, with parents and children.
  • Before and after photo pairs on each case, chosen from the media library, reorderable by drag.
  • Case fields you define yourself — text, number, single choice and multiple choice — grouped however you like.
  • A front-end gallery with a procedure menu, a filter dialog built from your own fields, a case-number search and “Load more”.
  • Clean URLs: /gallery/, /gallery/procedure/ and /gallery/procedure/case/, with 301 redirects from older query-string links.
  • Titles, descriptions and canonical tags for procedure pages, on plain WordPress and through Yoast SEO when it is active.
  • Templates you can override from your theme, and filters for the generated meta.

How it works

The first page of cases is rendered by PHP, so the gallery is visible to visitors and to search engines without JavaScript. The script then adds procedure switching without a page reload, the filter dialog and the “Load more” button, all through the plugin’s own REST routes under caselens/v1.

Shortcode

Place the gallery on any page:

[caselens_gallery]

Attributes:

  • procedure — show only one procedure, by slug.
  • per_page — cases per page (3 to 60).
  • columns — grid columns (1 to 6).
  • sidebar — yes or no, for the procedure menu.
  • filters — yes or no, for the filter button.
  • search — yes or no, for the case-number search.

For example: [caselens_gallery procedure="breast" columns="2" sidebar="no"]

Who it suits

Any site that shows paired results: clinics and practices, dentists, hair and beauty studios, renovation and landscaping firms, detailers, restorers, cleaning companies, trainers — anywhere a before and a after picture tell the story.

Screenshots

The gallery: procedure menu, filter bar and the grid of before/after cards.

The gallery: procedure menu, filter bar and the grid of before/after cards.

The filter dialog, built from the case fields you defined.

The filter dialog, built from the case fields you defined.

One case: before and after pairs beside the case details.

One case: before and after pairs beside the case details.

The case editor, with photo pairs and detail fields.

The case editor, with photo pairs and detail fields.

The Case Fields screen.

The Case Fields screen.

Gallery settings.

Gallery settings.

Plugin Details

Active Installs
0
Total Downloads
35
Version
1.0.0
Requires WP
6.2
Requires PHP
7.4
Tested Up To
7.1.4
Added
2026-10-31
Last Updated
2026-10-31 11:58am GMT

Ratings

5
0
4
0
3
0
2
0
1
0