| 开发者 | alexandreapcampos |
|---|---|
| 更新时间 | 2026年11月22日 15:32 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
[bapg_gallery]
Options (all optional):
service="kitchens,bathrooms" – only these service slugscolumns="3" – 1 to 4limit="12" – number of projectsfilter="yes" – show service filter buttonsdetails="yes" – show location, scope, cost and dateexcerpt="no" – show the project excerptratio="4/3" – photo shape, e.g. 3/2, 16/9, 1/1orderby="date" – date, title, menu_order, modified or randorder="DESC" – ASC or DESCstyle="card" – card or minimal (default comes from Settings)[bapg_slider id="123"]
Pro add-on
Remodelry Project Gallery Pro is an optional paid add-on with masonry, carousel, featured and list gallery layouts, multiple before/after photo pairs per project, and watermarks with your logo or company name. Everything in this free plugin works fully without it.
/wp-content/plugins/.)[bapg_gallery] shortcode) to any page.Take the before and after photos from the same spot, at the same height and zoom. Both photos are cropped to the same shape, so landscape photos work best with the default 4:3 shape.
Go to Settings → Permalinks and click Save once. This refreshes WordPress's links.
Yes. Add this to your theme's functions.php:
add_filter( 'bapg_auto_insert_single', '__return_false' );
Your projects and photos stay in your database and media library. They reappear if you reinstall. Only the plugin's settings are removed.
Yes. Use the block in the block editor, or the [bapg_gallery] shortcode in any theme, widget or page builder that runs shortcodes. The gallery uses your theme's fonts and one accent color you choose in Settings.
Yes. Drag with a finger, click or drag with a mouse, or use the arrow keys after tabbing to the slider. Vertical scrolling still works over the photos.
No. The CSS and JavaScript load only on pages that show a gallery or project, images use WordPress's responsive sizes, and there are no external requests.
[bapg_gallery] accept a layout option when an add-on provides more layouts.bapg_details_items filter now receives key => array( 'label', 'value' ).