Embedding the gallery

Use the [medbeafgallery] shortcode to place the full gallery on any page or post.

Place the full gallery anywhere with the [medbeafgallery] shortcode. Add it to a page or post (in a Shortcode block, or your page builder’s shortcode widget) and publish.

[medbeafgallery]

Shortcode attributes

AttributeDefaultDescription
items_per_page6How many cases to load per page.
default_categoryallCategory slug to show first.
show_filterstrueShow the category/filter controls.
show_ctafrom settingsShow the consultation call-to-action button.
cta_textfrom settingsOverride the CTA button label.
cta_linkfrom settingsOverride the CTA button URL.

Example — start on a specific category and show 9 per page:

[medbeafgallery default_category="veneers" items_per_page="9"]

Works with any editor

The shortcode works in the Block editor (Shortcode block), Classic editor, and page builders such as Elementor, Divi and WPBakery via their shortcode widget.

Other shortcodes (Pro)

Pro adds two more shortcodes for embedding pieces of your gallery:

  • [mba_category_carousel] — a sliding carousel of a category.
  • [mba_case id="123"] — a single case embedded inline.

See the Shortcode reference for every attribute.

Styling

Set your brand color and base look under Before After Gallery → Settings. The gallery is theme-resilient, so it renders consistently inside virtually any theme. With Pro you get extra appearance controls — see Layouts and Appearance.