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.
/gallery/, /gallery/procedure/ and /gallery/procedure/case/, with 301 redirects from older query-string links.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.
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"]
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.