| 开发者 | rodneylungayan |
|---|---|
| 更新时间 | 2026年10月31日 19:58 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPL-2.0-or-later |
| 版权网址: | 版权信息 |
/gallery/, /gallery/procedure/ and /gallery/procedure/case/, with 301 redirects from older query-string links.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.[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.
/wp-content/plugins/, or install it from the Plugins screen.[caselens_gallery] shortcode.No. The plugin is self-contained. Case fields, photo pairs, the gallery and the case layout are all its own.
Yes. Copy templates/gallery.php or templates/single-case.php from the plugin into a caselens folder inside your theme — for example wp-content/themes/your-theme/caselens/single-case.php — and edit your copy. Your copy is used instead of the plugin's.
If your theme provides its own single-caselens_case.php, that takes over entirely.
They are the rows in the details table beside the photos, and they are what the filter dialog is built from. Tick Filter on a field and it becomes a filter: choice fields become checkbox lists with counts, number fields become a minimum and maximum. Only values that cases actually have are offered.
Yes. The first page of cases and the whole procedure menu are rendered by PHP as ordinary links. JavaScript adds the filter dialog, "Load more" and switching procedures without a reload.
No, not unless you ask it to. There is a tick box under Gallery Cases > Settings > Uninstalling; leave it off and deleting the plugin removes only its settings.
Yes. Procedure pages get a generated title, description and canonical URL. When Yoast SEO is active these go through its own filters, so there is no duplication. The caselens_procedure_meta filter lets you change the generated wording.
Yes. Activate it per site. Uninstalling cleans up each site in the network.