Back to site

Shortcodes

Supernova Theme Shortcodes

Table of Contents

This reference lists every shortcode registered by the Supernova theme, alongside its purpose, source location, and available attributes.

[article-grid]

  • Defined in: functions.php
  • Purpose: Outputs a paginated grid of standard posts with thumbnail, date, and optional excerpt cards.
  • Notes: Supports filtering by author or category and inherits the global show_property_card_description option to control excerpts.
AttributeDefaultDescription
count16Maximum number of posts to show per page.
columns4Number of grid columns (used for CSS classing).
paginationyesSet to no to hide the next/previous pagination links.
class''Extra CSS class appended to the grid container.
author''Filter posts by author ID.
category''Filter posts by category slug.

[footer-signature]

  • Defined in: functions.php
  • Purpose: Prints the 4Property/Acquaint CRM footer signature, current year, agent login link, and the registered footer-menu navigation menu.

[supernova-menu]

  • Defined in: functions.php
  • Purpose: Outputs a WordPress navigation menu with the theme’s wrap class.
AttributeDefaultDescription
location''Theme location slug to render.
name''Specific menu slug to render instead of location.

[supernova-google-reviews-badge]

  • Defined in: functions.php
  • Purpose: Fetches rating data from the Google Places Details API and displays a branded Google review badge with star meter.
  • Requirements: Requires a valid google_places_api option value and an accessible Place ID.
AttributeDefaultDescription
place-id(required)Google Place ID to request rating details for.

[osm-map]

  • Defined in: includes/blocks.php
  • Purpose: Embeds a Leaflet-powered OpenStreetMap with clustered markers.
  • Notes: Automatically enqueues required Leaflet assets from CDNs on load.
AttributeDefaultDescription
markers''Pipe-separated list of marker arrays, e.g. 55.134874, -7.453658, "Label".
height400pxCSS height applied to the map container.

[supernova-latest-property-cards] / [article-grid-overlay]

  • Defined in: includes/blocks.php
  • Purpose: Outputs a flex-based set of recent posts with featured images, categories, and dates. Both shortcode names invoke the same renderer.
AttributeDefaultDescription
category''Filter posts by category slug.
count18Number of posts to query.

[supernova-aside]

  • Defined in: includes/blocks.php
  • Purpose: Renders a fixed aside/panel that can preload a reusable block, optional “don’t show again” checkbox, and animation accents.
AttributeDefaultDescription
id0Template part ID to render inside the aside body.
width400Width of the aside in pixels.
trigger''Data attribute used by theme scripts to trigger opening.
controls1Set to 0 to hide the “don’t show again” checkbox.
accent#333Hex color used for the header sheen and border.
titleGet StartedAside header label.
display0Use 1 to render the aside expanded by default.

[faceted-search]

  • Defined in: includes/blocks.php
  • Purpose: Outputs a simple search form and extends the main search query to include multiple custom post types.

[logo-carousel]

  • Defined in: modules/logo-carousel/logo-carousel.php
  • Purpose: Builds a horizontal logo carousel from the logo custom post type and injects minimal CSS for layout.
AttributeDefaultDescription
per-page4Number of logos visible at once (drives CSS variable).
in''Comma-separated list of logo post IDs to limit the carousel to.

[supernova-testimonials]

  • Defined in: modules/testimonials/testimonials.php
  • Purpose: Displays testimonials in a masonry-like grid with responsive JavaScript sizing.

[supernova-testimonial-carousel]

  • Defined in: modules/testimonials/testimonials.php
  • Purpose: Creates a Flickity-powered testimonial carousel with optional taxonomy filters and autoplay.
AttributeDefaultDescription
in''Comma-separated list of testimonial IDs to include.
type''Filter by testimonial_type taxonomy slug.
autoplay''Flickity autoplay value, e.g. true or a millisecond interval.
slides1Number of testimonial columns shown per slide (also affects CSS width).

[supernova-testimonial-blocks]

  • Defined in: modules/testimonials/testimonials.php
  • Purpose: Outputs each testimonial as a full-width media text block with background image, quote, and cite, ordered by menu order.

Pagespeed Optimization by Lighthouse.